Merge pull request #6815 from vector-im/gil/6814-Check_enabled_field_in_notification_settings_push_toggles

Check enabled field in notification settings push toggles
This commit is contained in:
Gil Eluard
2022-10-06 14:34:57 +02:00
committed by GitHub
4 changed files with 159 additions and 8 deletions
@@ -91,6 +91,10 @@ class UserSessionOverviewService: UserSessionOverviewServiceProtocol {
switch response {
case .success:
if let account = MXKAccountManager.shared().activeAccounts.first, account.device?.deviceId == pusher.deviceId {
account.loadCurrentPusher(nil)
}
self.checkPusher()
case .failure(let error):
MXLog.warning("[UserSessionOverviewService] togglePusher failed due to error: \(error)")