AppCoordinator: Handle user session removal on clear cache.

This commit is contained in:
SBiOSoftWhare
2021-06-07 12:12:00 +02:00
parent f3be6e5ba0
commit 21bd76e304
@@ -139,6 +139,8 @@ extension AppCoordinator: LegacyAppDelegateDelegate {
}
func legacyAppDelegate(_ legacyAppDelegate: LegacyAppDelegate!, didRemoveMatrixSession session: MXSession!) {
// Handle user session removal on clear cache. On clear cache the account has his session closed but the account is not removed.
self.userSessionsService.removeUserSession(relatedToMatrixSession: session)
}
func legacyAppDelegate(_ legacyAppDelegate: LegacyAppDelegate!, didAdd account: MXKAccount!) {