commit 8b600a977400519ad7f01788f3bb36b66788e122
parent 286ae68fd63754fbf5a9f4b271c207e9d2df1728
Author: tappu75e@duck.com <tappu75e@duck.com>
Date: Sun, 20 Aug 2023 23:25:54 +0300
Avoid notification for zap from mute profiles
Changelog-Fixed: Avoid notification for zaps from muted profiles
Closes: https://github.com/damus-io/damus/pull/1494
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift
@@ -228,6 +228,10 @@ class HomeModel {
guard zap.target.pubkey == self.damus_state.keypair.pubkey else {
return
}
+
+ guard should_show_event(privkey: damus_state.keypair.privkey, hellthreads: damus_state.muted_threads, contacts: damus_state.contacts, ev: zap.request.ev) else {
+ return
+ }
if !self.notifications.insert_zap(.zap(zap)) {
return