mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 12:46:58 +02:00
Address comments and cleanup version checks
This commit is contained in:
@@ -33,7 +33,7 @@ extension NotificationIndex {
|
||||
/**
|
||||
Used to map the on/off checkmarks to an index used in the static push rule definitions.
|
||||
*/
|
||||
static func index(enabled: Bool) -> NotificationIndex {
|
||||
static func index(when enabled: Bool) -> NotificationIndex {
|
||||
return enabled ? .noisy : .off
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import Foundation
|
||||
The notification settings screen definitions, used when calling the coordinator.
|
||||
*/
|
||||
@objc enum NotificationSettingsScreen: Int {
|
||||
case defaultNotificaitons
|
||||
case defaultNotifications
|
||||
case mentionsAndKeywords
|
||||
case other
|
||||
}
|
||||
@@ -37,7 +37,7 @@ extension NotificationSettingsScreen {
|
||||
*/
|
||||
var pushRules: [NotificationPushRuleId] {
|
||||
switch self {
|
||||
case .defaultNotificaitons:
|
||||
case .defaultNotifications:
|
||||
return [.oneToOneRoom, .allOtherMessages, .oneToOneEncryptedRoom, .encrypted]
|
||||
case .mentionsAndKeywords:
|
||||
return [.containDisplayName, .containUserName, .roomNotif, .keywords]
|
||||
|
||||
Reference in New Issue
Block a user