Refactor PushRulesUpdater

This commit is contained in:
Alfonso Grillo
2023-02-02 12:04:40 +01:00
parent 0de90435fb
commit a3d4a66d1a
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 {