Check enabled field in notification settings push toggles

This commit is contained in:
Gil Eluard
2022-10-06 11:40:12 +02:00
parent 09cd354d6d
commit 353cd584dd
4 changed files with 154 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)")