commit 492786f66d9048f7f244ff7d566aed52cb268596
parent 8f0aeadabfeb310f69e58ac2499ee8bc6a4ee935
Author: William Casarin <jb55@jb55.com>
Date: Wed, 24 Aug 2022 10:57:51 -0700
don't filter on kinds in threads
Let's pull all related data that we can get
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/damus/Models/ThreadModel.swift b/damus/Models/ThreadModel.swift
@@ -116,8 +116,8 @@ class ThreadModel: ObservableObject {
}
func subscribe() {
- var ref_events = NostrFilter.filter_kinds([self.kind,5,6,7])
- var events_filter = NostrFilter.filter_kinds([self.kind])
+ var ref_events = NostrFilter()
+ var events_filter = NostrFilter()
//var likes_filter = NostrFilter.filter_kinds(7])
// TODO: add referenced relays
@@ -183,7 +183,7 @@ class ThreadModel: ObservableObject {
func handle_event(relay_id: String, ev: NostrConnectionEvent) {
let done = handle_subid_event(pool: pool, sub_id: sub_id, relay_id: relay_id, ev: ev) { ev in
- if ev.known_kind == .text {
+ if ev.is_textlike {
self.add_event(ev, privkey: self.privkey)
}
}