commit 6003a3c6f809fcb0a4341b6302e92803a0693246 parent 572cae7dc5354378b2756a60afe7297eff513c76 Author: William Casarin <jb55@jb55.com> Date: Sun, 25 Jun 2023 12:10:27 +0200 nozaps: don't pull thread zaps in nozaps mode Diffstat:
M | damus/Models/ThreadModel.swift | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/damus/Models/ThreadModel.swift b/damus/Models/ThreadModel.swift @@ -69,12 +69,17 @@ class ThreadModel: ObservableObject { meta_events.referenced_ids = [event.id] - var kinds: [NostrKind] = [.zap, .text, .boost] + var kinds: [NostrKind] = [.text, .boost] + if !damus_state.settings.onlyzaps_mode { kinds.append(.like) } - meta_events.kinds = kinds + if !damus_state.settings.nozaps { + kinds.append(.zap) + } + + meta_events.kinds = kinds meta_events.limit = 1000 let base_filters = [event_filter, ref_events]