damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0f29d67e1fd2342779dc558f101950d8b9856385
parent 9fd2f519719e9eb6db46a719e936669ad88bac9f
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 26 Feb 2023 15:56:31 -0800

ensure blocked users do not show in notifications

Diffstat:
Mdamus/Models/HomeModel.swift | 4++++
Mdamus/Models/NotificationsModel.swift | 1-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -456,6 +456,10 @@ class HomeModel: ObservableObject { return } + guard should_show_event(contacts: damus_state.contacts, ev: ev) else { + return + } + damus_state.events.insert(ev) if let inner_ev = ev.inner_event { damus_state.events.insert(inner_ev) diff --git a/damus/Models/NotificationsModel.swift b/damus/Models/NotificationsModel.swift @@ -46,7 +46,6 @@ enum NotificationItem { } class NotificationsModel: ObservableObject, ScrollQueue { - var incoming_zaps: [Zap] var incoming_events: [NostrEvent] var should_queue: Bool