Fix a regression where the forced logout indicator was presented on the hidden overlay window. (#2063)

This commit is contained in:
Doug
2023-11-10 17:21:02 +00:00
committed by GitHub
parent 5adbb3789e
commit b5cc2cbf61
20 changed files with 88 additions and 17 deletions
@@ -56,9 +56,6 @@ class AppLockService: AppLockServiceProtocol {
var numberOfPINAttempts: AnyPublisher<Int, Never> { appSettings.$appLockNumberOfPINAttempts }
private var disabledSubject: PassthroughSubject<Void, Never> = .init()
var disabledPublisher: AnyPublisher<Void, Never> { disabledSubject.eraseToAnyPublisher() }
init(keychainController: KeychainControllerProtocol, appSettings: AppSettings, context: LAContext = .init()) {
self.keychainController = keychainController
self.appSettings = appSettings
@@ -108,7 +105,6 @@ class AppLockService: AppLockServiceProtocol {
keychainController.removePINCode()
keychainController.removePINCodeBiometricState()
appSettings.appLockNumberOfPINAttempts = 0
disabledSubject.send()
}
func applicationDidEnterBackground() {