diff --git a/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift b/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift index 9ab94f30c..85526491e 100644 --- a/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift +++ b/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift @@ -57,13 +57,6 @@ class LocalAuthenticationService: NSObject { return (systemUptime - appLastActiveTime) > pinCodePreferences.graceTimeInSeconds } - var shouldShowInactiveScreen: Bool { - guard isProtectionSet else { - return false - } - return !BiometricsAuthenticationPresenter.isPresenting - } - var isProtectionSet: Bool { return pinCodePreferences.isPinSet || pinCodePreferences.isBiometricsSet } diff --git a/Riot/Modules/Application/LegacyAppDelegate.m b/Riot/Modules/Application/LegacyAppDelegate.m index cc4cf7a9f..015b0a172 100644 --- a/Riot/Modules/Application/LegacyAppDelegate.m +++ b/Riot/Modules/Application/LegacyAppDelegate.m @@ -528,7 +528,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni wrongBackupVersionAlert = nil; } - if ([self.localAuthenticationService shouldShowInactiveScreen]) + if ([self.localAuthenticationService isProtectionSet] && ![BiometricsAuthenticationPresenter isPresenting]) { if (self.setPinCoordinatorBridgePresenter) {