mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Enable automatic Verification when already signed in with Element Classic. (#5453)
Enable automatic Verification with Element Classic.
This commit is contained in:
@@ -450,8 +450,6 @@ 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.automaticBackPaginationEnabled, defaultValue: false, storageType: .userDefaults(store))
|
@UserPreference(key: UserDefaultsKeys.automaticBackPaginationEnabled, defaultValue: false, storageType: .userDefaults(store))
|
||||||
var automaticBackPaginationEnabled
|
var automaticBackPaginationEnabled
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class AuthenticationService: AuthenticationServiceProtocol {
|
|||||||
self.appHooks = appHooks
|
self.appHooks = appHooks
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if let classicAppManager, appSettings.verifyWithClassicEnabled {
|
if let classicAppManager {
|
||||||
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