Fix session verification SAS flow not automatically starting
With #5116 removing the `verificationRequestAccepted` view state and its `.startSasVerification` button action we now need another way of starting the SAS flows whenever the verification requests gets accepted. As such a state machine transition from `acceptingVerificationRequest` to `verificationRequestAccepted` will now automatically call `startSasVerification` on the SessionVerificationProxy.
This commit is contained in:
@@ -109,9 +109,9 @@ struct SessionVerificationViewModelTests {
|
||||
private mutating func setupChallengeReceived() async throws {
|
||||
let actionsPublisher = sessionVerificationController.actions.delay(for: .seconds(0.1), scheduler: DispatchQueue.main)
|
||||
let cancellable = actionsPublisher
|
||||
.sink { [context] action in
|
||||
.sink { [sessionVerificationController] action in
|
||||
if case .acceptedVerificationRequest = action {
|
||||
context?.send(viewAction: .startSasVerification)
|
||||
Task { await sessionVerificationController?.startSasVerification() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user