mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user