From 1d0b73fe4d25af32701fae3210ea3c7b0f616fa5 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Thu, 16 Apr 2026 12:19:09 +0100 Subject: [PATCH] Add a build flag for Verify with Classic to disable it for the next RC. (#5406) --- ElementX/Sources/Application/Settings/AppSettings.swift | 2 ++ .../Sources/Services/Authentication/AuthenticationService.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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.")