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
@@ -113,6 +113,10 @@ final class NotificationSettingsViewModel: NotificationSettingsViewModelType, Ob
switch ruleID {
case .keywords: // Keywords is handled differently to other settings
updateKeywords(isChecked: isChecked)
case .oneToOneRoom:
updatePushActions(for: [ruleID, .msc3930oneToOnePollStart, .msc3930oneToOnePollEnd], enabled: enabled, standardActions: standardActions)
case .allOtherMessages:
updatePushActions(for: [ruleID, .msc3930pollStart, .msc3930pollEnd], enabled: enabled, standardActions: standardActions)
default:
updatePushActions(for: [ruleID], enabled: enabled, standardActions: standardActions)
}