mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Enable the App Lock feature. (#1990)
This commit is contained in:
@@ -149,9 +149,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
||||
return
|
||||
}
|
||||
|
||||
if appSettings.appLockFlowEnabled,
|
||||
appSettings.appLockIsMandatory,
|
||||
!appLockFlowCoordinator.appLockService.isEnabled {
|
||||
if appSettings.appLockIsMandatory, !appLockFlowCoordinator.appLockService.isEnabled {
|
||||
stateMachine.processEvent(.startWithAppLockSetup)
|
||||
} else {
|
||||
stateMachine.processEvent(.startWithExistingSession)
|
||||
|
||||
@@ -42,7 +42,6 @@ final class AppSettings {
|
||||
case userSuggestionsEnabled
|
||||
case readReceiptsEnabled
|
||||
case swiftUITimelineEnabled
|
||||
case appLockFlowEnabled
|
||||
case elementCallEnabled
|
||||
case chatBackupEnabled
|
||||
}
|
||||
@@ -268,9 +267,6 @@ final class AppSettings {
|
||||
@UserPreference(key: UserDefaultsKeys.swiftUITimelineEnabled, defaultValue: false, storageType: .volatile)
|
||||
var swiftUITimelineEnabled
|
||||
|
||||
@UserPreference(key: UserDefaultsKeys.appLockFlowEnabled, defaultValue: false, storageType: .volatile)
|
||||
var appLockFlowEnabled
|
||||
|
||||
@UserPreference(key: UserDefaultsKeys.elementCallEnabled, defaultValue: true, storageType: .userDefaults(store))
|
||||
var elementCallEnabled
|
||||
|
||||
|
||||
Reference in New Issue
Block a user