Add polls rule ids

This commit is contained in:
Alfonso Grillo
2022-12-02 10:40:52 +01:00
parent ebb712ba3b
commit f307d43110
2 changed files with 8 additions and 2 deletions
@@ -42,7 +42,7 @@ extension NotificationPushRuleId {
case .silent: return .notify
case .noisy: return .highlight
}
case .oneToOneRoom:
case .oneToOneRoom, .msc3930oneToOnePollStart, .msc3930oneToOnePollEnd:
switch index {
case .off: return .dontNotify
case .silent: return .notify
@@ -54,7 +54,7 @@ extension NotificationPushRuleId {
case .silent: return .notify
case .noisy: return .notifyDefaultSound
}
case .allOtherMessages:
case .allOtherMessages, .msc3930pollStart, .msc3930pollEnd:
switch index {
case .off: return .dontNotify
case .silent: return .notify