diff --git a/ElementX/Sources/Application/Settings/AppSettings.swift b/ElementX/Sources/Application/Settings/AppSettings.swift index 0d933a73b..5851679ae 100644 --- a/ElementX/Sources/Application/Settings/AppSettings.swift +++ b/ElementX/Sources/Application/Settings/AppSettings.swift @@ -445,6 +445,8 @@ final class AppSettings { @UserPreference(key: UserDefaultsKeys.liveLocationSharingEnabled, defaultValue: false, storageType: .userDefaults(store)) var liveLocationSharingEnabled + let verifyWithClassicEnabled = appBuildType != .release + @UserPreference(key: UserDefaultsKeys.developerOptionsEnabled, defaultValue: appBuildType == .debug, storageType: .userDefaults(store)) var developerOptionsEnabled } diff --git a/ElementX/Sources/Services/Authentication/AuthenticationService.swift b/ElementX/Sources/Services/Authentication/AuthenticationService.swift index a3b521754..cbeed9a48 100644 --- a/ElementX/Sources/Services/Authentication/AuthenticationService.swift +++ b/ElementX/Sources/Services/Authentication/AuthenticationService.swift @@ -46,7 +46,7 @@ class AuthenticationService: AuthenticationServiceProtocol { self.appHooks = appHooks do { - if let classicAppManager { + if let classicAppManager, appSettings.verifyWithClassicEnabled { classicAppAccount = try classicAppManager.loadAccounts().first } else { MXLog.info("Classic App not configured, skipping loadAccounts.")