mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Add a state machine to AppLockFlowCoordinator. (#2166)
Fixes a bug when cancelling Face ID would loop back round to presenting Face ID.
This commit is contained in:
@@ -207,7 +207,7 @@ class AppLockServiceTests: XCTestCase {
|
||||
XCTAssertEqual(service.biometryType, .touchID, "The biometry type should not change.")
|
||||
XCTAssertTrue(service.biometricUnlockEnabled, "Biometric unlock should now be enabled.")
|
||||
XCTAssertTrue(service.biometricUnlockTrusted, "Biometric unlock should now be trusted.")
|
||||
guard await service.unlockWithBiometrics() else {
|
||||
guard await service.unlockWithBiometrics() == .unlocked else {
|
||||
XCTFail("The biometric unlock should work.")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user