mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
don't keep re-prompting the user to migrate if they get spontaneously logged out. (#5844)
This commit is contained in:
@@ -46,7 +46,12 @@ class AuthenticationService: AuthenticationServiceProtocol {
|
||||
self.appHooks = appHooks
|
||||
|
||||
do {
|
||||
if let classicAppManager {
|
||||
if appSettings.hasSignedInBefore {
|
||||
// Element X has already been used on this device, so an account left behind by the
|
||||
// Classic app is stale — don't offer to migrate it again after a logout.
|
||||
MXLog.info("Already signed in to Element X before, skipping loadAccounts.")
|
||||
classicAppAccount = nil
|
||||
} else if let classicAppManager {
|
||||
classicAppAccount = try classicAppManager.loadAccounts().first
|
||||
} else {
|
||||
MXLog.info("Classic App not configured, skipping loadAccounts.")
|
||||
|
||||
Reference in New Issue
Block a user