Browse Source

fix chatroom easteregg bug

Signed-off-by: William Casarin <jb55@jb55.com>
profile-edit
William Casarin 2 years ago
parent
commit
0af91987c3
  1. 3
      damus/Views/ThreadView.swift

3
damus/Views/ThreadView.swift

@ -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")
} }

Loading…
Cancel
Save