This commit is contained in:
Alfonso Grillo
2023-01-30 12:32:57 +01:00
parent ed64e8ed6d
commit 160b860241
2 changed files with 19 additions and 12 deletions
@@ -82,4 +82,15 @@ extension NotificationPushRuleId {
return ""
}
}
var syncedRules: [NotificationPushRuleId] {
switch self {
case .oneToOneRoom:
return [.oneToOnePollStart, .msc3930oneToOnePollStart, .oneToOnePollEnd, .msc3930oneToOnePollEnd]
case .allOtherMessages:
return [.pollStart, .msc3930pollStart, .pollEnd, .msc3930pollEnd]
default:
return []
}
}
}