mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Make LinkNewDeviceScreen fall back to the App Lock PIN code when there's no passcode. (#5794)
* Fall back to the AppLock PIN code when there's no passcode. * Add extra tests on the LinkNewDeviceFlowCoordinator. * Misc tweaks for clarification. * Regenerate snapshots.
This commit is contained in:
@@ -11,6 +11,7 @@ import SwiftUI
|
||||
enum LinkNewDeviceScreenCoordinatorAction {
|
||||
case linkMobileDevice(LinkNewDeviceService.LinkMobileProgressPublisher)
|
||||
case linkDesktopComputer
|
||||
case verifyWithAppLockPIN(CheckedContinuation<Bool, Never>)
|
||||
case dismiss
|
||||
}
|
||||
|
||||
@@ -47,6 +48,8 @@ final class LinkNewDeviceScreenCoordinator: CoordinatorProtocol {
|
||||
actionsSubject.send(.linkMobileDevice(progressPublisher))
|
||||
case .linkDesktopComputer:
|
||||
actionsSubject.send(.linkDesktopComputer)
|
||||
case .verifyWithAppLockPIN(let continuation):
|
||||
actionsSubject.send(.verifyWithAppLockPIN(continuation))
|
||||
case .dismiss:
|
||||
actionsSubject.send(.dismiss)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user