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:
Stefan Ceriu
2026-04-20 14:53:34 +03:00
parent 00fec4be09
commit d5555a9b23
4 changed files with 3 additions and 10 deletions

View File

@@ -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() }
}
}