mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Cleanup code
This commit is contained in:
@@ -59,8 +59,7 @@ class MXNotificationSettingsService: NotificationSettingsServiceType {
|
||||
|
||||
func add(keyword: String, enabled: Bool) {
|
||||
let index = NotificationIndex.index(when: enabled)
|
||||
guard let actions = NotificationPushRuleId.keywords.standardActions(for: index)?.actions
|
||||
else {
|
||||
guard let actions = NotificationPushRuleId.keywords.standardActions(for: index).actions else {
|
||||
return
|
||||
}
|
||||
session.notificationCenter.addContentRuleWithRuleId(matchingPattern: keyword, notify: actions.notify, sound: actions.sound, highlight: actions.highlight)
|
||||
|
||||
Reference in New Issue
Block a user