mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Add a build flag for Verify with Classic to disable it for the next RC. (#5406)
This commit is contained in:
@@ -445,6 +445,8 @@ final class AppSettings {
|
|||||||
@UserPreference(key: UserDefaultsKeys.liveLocationSharingEnabled, defaultValue: false, storageType: .userDefaults(store))
|
@UserPreference(key: UserDefaultsKeys.liveLocationSharingEnabled, defaultValue: false, storageType: .userDefaults(store))
|
||||||
var liveLocationSharingEnabled
|
var liveLocationSharingEnabled
|
||||||
|
|
||||||
|
let verifyWithClassicEnabled = appBuildType != .release
|
||||||
|
|
||||||
@UserPreference(key: UserDefaultsKeys.developerOptionsEnabled, defaultValue: appBuildType == .debug, storageType: .userDefaults(store))
|
@UserPreference(key: UserDefaultsKeys.developerOptionsEnabled, defaultValue: appBuildType == .debug, storageType: .userDefaults(store))
|
||||||
var developerOptionsEnabled
|
var developerOptionsEnabled
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class AuthenticationService: AuthenticationServiceProtocol {
|
|||||||
self.appHooks = appHooks
|
self.appHooks = appHooks
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if let classicAppManager {
|
if let classicAppManager, appSettings.verifyWithClassicEnabled {
|
||||||
classicAppAccount = try classicAppManager.loadAccounts().first
|
classicAppAccount = try classicAppManager.loadAccounts().first
|
||||||
} else {
|
} else {
|
||||||
MXLog.info("Classic App not configured, skipping loadAccounts.")
|
MXLog.info("Classic App not configured, skipping loadAccounts.")
|
||||||
|
|||||||
Reference in New Issue
Block a user