mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fixes #1573 - Retract all notifications and app badges when signing out
This commit is contained in:
committed by
Stefan Ceriu
parent
f1758b5994
commit
e9a945cfe4
@@ -412,6 +412,11 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The user will log out, clear any existing notifications
|
||||||
|
UNUserNotificationCenter.current().removeAllPendingNotificationRequests()
|
||||||
|
UNUserNotificationCenter.current().removeAllDeliveredNotifications()
|
||||||
|
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||||
|
|
||||||
Task {
|
Task {
|
||||||
// First log out from the server
|
// First log out from the server
|
||||||
let accountLogoutURL = await userSession.clientProxy.logout()
|
let accountLogoutURL = await userSession.clientProxy.logout()
|
||||||
|
|||||||
Reference in New Issue
Block a user