DispatchGroup to TaskGroup refactor

This commit is contained in:
Alfonso Grillo
2023-02-02 22:42:41 +01:00
parent e54050bed2
commit 3ab38a63fd
2 changed files with 28 additions and 30 deletions

View File

@@ -89,10 +89,10 @@ class MXNotificationSettingsService: NotificationSettingsServiceType {
// Updating the actions before enabling the rule allows the homeserver to triggers just one sync update
try await session.notificationCenter.updatePushRuleActions(ruleId,
kind: rule.kind,
notify: actions.notify,
soundName: actions.sound,
highlight: actions.highlight)
kind: rule.kind,
notify: actions.notify,
soundName: actions.sound,
highlight: actions.highlight)
try await session.notificationCenter.enableRule(pushRule: rule, isEnabled: enabled)
}