diff --git a/NSE/Sources/NotificationHandler.swift b/NSE/Sources/NotificationHandler.swift index 430f32c66..347c85327 100644 --- a/NSE/Sources/NotificationHandler.swift +++ b/NSE/Sources/NotificationHandler.swift @@ -58,6 +58,11 @@ class NotificationHandler { case .processedShouldDiscard, .unsupportedShouldDiscard: discardNotification() case .shouldDisplay: + if settings.hideQuietNotificationAlerts, !notificationItemProxy.isNoisy { + discardNotification() + return + } + await notificationContentBuilder.process(notificationContent: ¬ificationContent, notificationItem: notificationItemProxy, mediaProvider: userSession.mediaProvider) @@ -91,10 +96,6 @@ class NotificationHandler { } private func preprocessNotification(_ itemProxy: NotificationItemProxyProtocol) async -> NotificationProcessingResult { - if settings.hideQuietNotificationAlerts, !itemProxy.isNoisy { - return .processedShouldDiscard - } - guard case let .timeline(event) = itemProxy.event else { return .shouldDisplay }