diff --git a/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift b/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift index d2832fd3b..e751c3f04 100644 --- a/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift +++ b/Riot/Managers/LocalAuthentication/LocalAuthenticationService.swift @@ -55,6 +55,10 @@ class LocalAuthenticationService: NSObject { } return (systemUptime - appLastActiveTime) > pinCodePreferences.graceTimeInSeconds } + + var isProtectionSet: Bool { + return pinCodePreferences.isPinSet || pinCodePreferences.isBiometricsSet + } func applicationWillResignActive() { appLastActiveTime = systemUptime