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 5eef42059a
commit b224d907ce
2 changed files with 5 additions and 0 deletions
@@ -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 {