Add calls to update polls rules

This commit is contained in:
Alfonso Grillo
2022-12-02 12:50:40 +01:00
parent f87be21ab3
commit 96402fc6da
2 changed files with 8 additions and 1 deletions

View File

@@ -71,7 +71,10 @@ class MXNotificationSettingsService: NotificationSettingsServiceType {
}
func updatePushRuleActions(for ruleId: String, enabled: Bool, actions: NotificationActions?) {
guard let rule = session.notificationCenter.rule(byId: ruleId) else { return }
guard let rule = session.notificationCenter.rule(byId: ruleId) else {
return
}
session.notificationCenter.enableRule(rule, isEnabled: enabled)
if let actions = actions {