mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Add Chips, InputStyles, Service Implementation, swift-collections and UI cleanup.
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
The notification settings screen definitions, used when calling the coordinator.
|
||||
*/
|
||||
@objc enum NotificationSettingsScreen: Int {
|
||||
case defaultNotificaitons
|
||||
case mentionsAndKeywords
|
||||
@@ -29,7 +32,10 @@ extension NotificationSettingsScreen: Identifiable {
|
||||
}
|
||||
|
||||
extension NotificationSettingsScreen {
|
||||
var pushRules: [PushRuleId] {
|
||||
/**
|
||||
Defines which rules are handled by each of the screens.
|
||||
*/
|
||||
var pushRules: [NotificationPushRuleId] {
|
||||
switch self {
|
||||
case .defaultNotificaitons:
|
||||
return [.oneToOneRoom, .allOtherMessages, .oneToOneEncryptedRoom, .encrypted]
|
||||
|
||||
Reference in New Issue
Block a user