Merge pull request #3709 from vector-im/handle_retry_on_biometrics

Handle Retry on Biometrics
This commit is contained in:
ismailgulek 2020-10-01 19:06:03 +03:00 committed by GitHub
commit 891148d98f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@ Changes to be released in next version
* Settings: New phone number is invisible in dark theme (#3218).
* Handle call actions on other devices on VoIP pushes (#3677).
* Fix "Unable to open the link" error when using non-Safari browsers (#3673).
* Biometrics: Handle retry case.
⚠️ API Changes
*

View file

@ -106,6 +106,8 @@ final class SetupBiometricsViewModel: SetupBiometricsViewModelType {
self.coordinatorDelegate?.setupBiometricsViewModelDidCompleteWithReset(self, dueToTooManyErrors: true)
} else if nsError.code == LAError.Code.userCancel.rawValue || nsError.code == LAError.Code.userFallback.rawValue {
self.userCancelledUnlockWithBiometrics()
} else {
self.update(viewState: .cantUnlocked)
}
}
}