Fix a bug where calls don't ring when quiet notifications are hidden.

This commit is contained in:
Doug
2026-04-24 17:52:04 +01:00
committed by Stefan Ceriu
parent c0189e3bdb
commit d0e60becf4

View File

@@ -58,6 +58,11 @@ class NotificationHandler {
case .processedShouldDiscard, .unsupportedShouldDiscard:
discardNotification()
case .shouldDisplay:
if settings.hideQuietNotificationAlerts, !notificationItemProxy.isNoisy {
discardNotification()
return
}
await notificationContentBuilder.process(notificationContent: &notificationContent,
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
}