Add a developer option that hides notification alerts when a sound wouldn't be played.

Enabling this makes isNoisy behave like iMessage's Hide Alerts option.
This commit is contained in:
Doug
2025-05-26 11:46:33 +01:00
committed by Stefan Ceriu
parent 4adfa7c98d
commit 542d382870
4 changed files with 22 additions and 3 deletions
+4
View File
@@ -87,6 +87,10 @@ 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
}