From 7fb89c5d9c5bdd37b5dd9f8f9eec3e44ea588f53 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Thu, 1 Oct 2020 17:44:30 +0300 Subject: [PATCH 1/2] Add retry case --- .../SetPinCode/SetupBiometrics/SetupBiometricsViewModel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Riot/Modules/SetPinCode/SetupBiometrics/SetupBiometricsViewModel.swift b/Riot/Modules/SetPinCode/SetupBiometrics/SetupBiometricsViewModel.swift index c6296ba29..788d0fd01 100644 --- a/Riot/Modules/SetPinCode/SetupBiometrics/SetupBiometricsViewModel.swift +++ b/Riot/Modules/SetPinCode/SetupBiometrics/SetupBiometricsViewModel.swift @@ -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) } } } From 0e8178d5cbeca5fbb3bd16cf13395aead0c6b154 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Thu, 1 Oct 2020 17:45:04 +0300 Subject: [PATCH 2/2] Update CHANGES.rst --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index 265c0635f..4f362d289 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,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 *