PIN: Fix code bypass on fast switching

This commit is contained in:
manuroe 2020-10-26 16:09:39 +01:00
parent 27ce345b9f
commit c211bf3bc9
2 changed files with 2 additions and 1 deletions

View file

@ -133,6 +133,7 @@ Changes in 1.0.14 (2020-10-02)
* Biometrics: Handle retry case.
* Room: Remove membership events from room creation modal (#3679).
* PIN: Fix layout on small screens.
* PIN: Fix code bypass on fast switching.
⚠️ API Changes
*

View file

@ -54,7 +54,7 @@ class LocalAuthenticationService: NSObject {
guard let appLastActiveTime = appLastActiveTime else {
return true
}
return (systemUptime - appLastActiveTime) > pinCodePreferences.graceTimeInSeconds
return (systemUptime - appLastActiveTime) >= pinCodePreferences.graceTimeInSeconds
}
var isProtectionSet: Bool {