don't keep re-prompting the user to migrate if they get spontaneously logged out. (#5844)

This commit is contained in:
Matthew Hodgson
2026-07-07 14:28:40 +01:00
committed by GitHub
parent 9234060fb6
commit 834938f585
6 changed files with 21 additions and 4 deletions
@@ -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.")