Don't show notifications from ourselves

Changelog-Fixed: Don't show notifications from ourselves
This commit is contained in:
William Casarin
2023-03-05 15:15:23 -05:00
parent 8a70240968
commit cff98161ee

View File

@@ -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
}