mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Simplify ClassicAppAccount loading (only load what we need).
This commit is contained in:
@@ -48,15 +48,11 @@ final class ClassicAppManager: ClassicAppManagerProtocol {
|
||||
throw ClassicAppManagerError.missingCryptoStorePassphrase
|
||||
}
|
||||
|
||||
let accountManager = ClassicAppAccountManager(cacheFolder: url, iv: accountIV, aesKey: accountAESKey)
|
||||
let accountManager = ClassicAppAccountManager(cacheFolder: url,
|
||||
aesKey: accountAESKey,
|
||||
iv: accountIV,
|
||||
cryptoStorePassphrase: cryptoStorePassphrase)
|
||||
accountManager.loadAccounts()
|
||||
let activeAccounts = accountManager.activeAccounts
|
||||
|
||||
MXLog.info("Loaded \(accountManager.accounts.count) accounts")
|
||||
MXLog.verbose("Loaded accounts: \(accountManager.accounts.compactMap(\.credentials.userID).formatted(.list(type: .and)))")
|
||||
MXLog.info("Found \(activeAccounts.count) active accounts")
|
||||
MXLog.verbose("Active accounts: \(activeAccounts.compactMap(\.userID).formatted(.list(type: .and)))")
|
||||
|
||||
return activeAccounts
|
||||
return accountManager.accounts
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user