Refactor PushRulesUpdater

This commit is contained in:
Alfonso Grillo
2023-02-02 12:04:40 +01:00
parent 1114177a16
commit d52aa20c9b
4 changed files with 50 additions and 61 deletions
@@ -294,7 +294,7 @@ private extension NotificationSettingsViewModel {
}
}
private extension NotificationPushRuleId {
extension NotificationPushRuleId {
func syncedRules(in rules: [NotificationPushRuleType]) -> [NotificationPushRuleType] {
rules.filter {
guard let ruleId = NotificationPushRuleId(rawValue: $0.ruleId) else {