Fixes vector-im/element-ios/issues/5279 - Stop waiting for biometric unlock if disabled system wide

This commit is contained in:
Stefan Ceriu 2022-08-26 14:00:58 +03:00 committed by Stefan Ceriu
parent 1e7bc1978b
commit 2b32804c3a
2 changed files with 5 additions and 0 deletions

View file

@ -127,6 +127,10 @@ final class PinCodePreferences: NSObject {
var canUseBiometricsToUnlock: Bool? {
get {
guard isBiometricsAvailable == true else {
return false
}
do {
return try store.bool(forKey: StoreKeys.canUseBiometricsToUnlock)
} catch let error {

1
changelog.d/5279.bugfix Normal file
View file

@ -0,0 +1 @@
Stop waiting for biometric unlock if disabled system wide