Address comments and cleanup version checks

This commit is contained in:
David Langley
2021-08-25 15:46:02 +01:00
parent 73b448afb6
commit 9b81730a50
11 changed files with 47 additions and 51 deletions
@@ -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]