commit cff98161ee274684775d7c6d25b6d1763c6f4a92
parent 8a70240968c67092a3c7870535ca5e19d3fce924
Author: William Casarin <jb55@jb55.com>
Date: Sun, 5 Mar 2023 15:15:23 -0500
Don't show notifications from ourselves
Changelog-Fixed: Don't show notifications from ourselves
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift
@@ -453,6 +453,11 @@ class HomeModel: ObservableObject {
}
func handle_notification(ev: NostrEvent) {
+ // don't show notifications from ourselves
+ guard ev.pubkey != damus_state.pubkey else {
+ return
+ }
+
guard event_has_our_pubkey(ev, our_pubkey: self.damus_state.pubkey) else {
return
}