Enable the App Lock feature. (#1990)

This commit is contained in:
Doug
2023-10-31 08:55:30 +00:00
committed by GitHub
parent 4f0ed94eaa
commit af3732541e
17 changed files with 20 additions and 49 deletions
@@ -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