mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
MESSENGER-2762 Initial Merge
This commit is contained in:
@@ -32,13 +32,24 @@ extension NotificationSettingsScreen: Identifiable {
|
||||
extension NotificationSettingsScreen {
|
||||
/// Defines which rules are handled by each of the screens.
|
||||
var pushRules: [NotificationPushRuleId] {
|
||||
switch self {
|
||||
case .defaultNotifications:
|
||||
return [.oneToOneRoom, .allOtherMessages, .oneToOneEncryptedRoom, .encrypted]
|
||||
case .mentionsAndKeywords:
|
||||
return [.containDisplayName, .containUserName, .roomNotif, .keywords]
|
||||
case .other:
|
||||
return [.inviteMe, .call, .suppressBots, .tombstone]
|
||||
if BuildSettings.settingsNotificationsBWIDefaultSet {
|
||||
switch self {
|
||||
case .defaultNotifications:
|
||||
return [.oneToOneEncryptedRoom, .encrypted, .inviteMe]
|
||||
case .mentionsAndKeywords:
|
||||
return []
|
||||
case .other:
|
||||
return []
|
||||
}
|
||||
} else {
|
||||
switch self {
|
||||
case .defaultNotifications:
|
||||
return [.oneToOneRoom, .allOtherMessages, .oneToOneEncryptedRoom, .encrypted]
|
||||
case .mentionsAndKeywords:
|
||||
return [.containDisplayName, .containUserName, .roomNotif, .keywords]
|
||||
case .other:
|
||||
return [.inviteMe, .call, .suppressBots, .tombstone]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user