mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
PIN: Fix code bypass on fast switching
This commit is contained in:
parent
27ce345b9f
commit
c211bf3bc9
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue