fix chatroom easteregg bug

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-08-10 12:11:41 -07:00
parent 39ab555a77
commit 0af91987c3

View File

@@ -47,6 +47,9 @@ struct ThreadView: View {
return return
} }
if let ev = thread.events.first { if let ev = thread.events.first {
guard ev.is_root_event() else {
return
}
seen_first = true seen_first = true
is_chatroom = has_hashtag(ev.tags, hashtag: "chat") is_chatroom = has_hashtag(ev.tags, hashtag: "chat")
} }