From 8122a8a580d035220218f675957a166641c9e18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Wed, 15 Oct 2025 14:41:20 -0700 Subject: [PATCH] Revert "Removes notifications from muted npubs" This reverts commit 6605c5e5835fc32183764e4c11a6d6ebac19ca18. --- damus/Features/Notifications/Views/NotificationsView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/damus/Features/Notifications/Views/NotificationsView.swift b/damus/Features/Notifications/Views/NotificationsView.swift index f6e4c671..bfa9d520 100644 --- a/damus/Features/Notifications/Views/NotificationsView.swift +++ b/damus/Features/Notifications/Views/NotificationsView.swift @@ -33,7 +33,7 @@ class NotificationFilter: ObservableObject, Equatable { self.hellthread_notification_max_pubkeys = hellthread_notification_max_pubkeys } - func filter(contacts: Contacts, mutelist_manager: MutelistManager, items: [NotificationItem]) -> [NotificationItem] { + func filter(contacts: Contacts, items: [NotificationItem]) -> [NotificationItem] { return items.reduce(into: []) { acc, item in if !self.state.filter(item) { @@ -41,7 +41,6 @@ class NotificationFilter: ObservableObject, Equatable { } if let item = item.filter({ ev in - !mutelist_manager.is_event_muted(ev) && self.friend_filter.filter(contacts: contacts, pubkey: ev.pubkey) && (!hellthread_notifications_disabled || !ev.is_hellthread(max_pubkeys: hellthread_notification_max_pubkeys)) && // Allow notes that are created no more than 3 seconds in the future @@ -170,7 +169,7 @@ struct NotificationsView: View { func NotificationTab(_ filter: NotificationFilter) -> some View { ScrollViewReader { scroller in ScrollView { - let notifs = Array(zip(1..., filter.filter(contacts: state.contacts, mutelist_manager: state.mutelist_manager, items: notifications.notifications))) + let notifs = Array(zip(1..., filter.filter(contacts: state.contacts, items: notifications.notifications))) if notifs.isEmpty { EmptyTimelineView() } else {