Merge pull request #8419 from vector-im/feature/bca/fix_qr_verif_refresh

Fix 8418
This commit is contained in:
Valere 2023-05-11 14:52:47 +02:00 committed by GitHub
commit 215c503a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

1
changelog.d/8418.bugfix Normal file
View File

@ -0,0 +1 @@
RustCrypto: Verification UX not refreshed after scanning a QR code

View File

@ -342,6 +342,9 @@ internal class RustVerificationService @Inject constructor(
val qrVerification = matchingRequest.scanQrCode(scannedData)
?: return null
verificationListenersHolder.dispatchTxAdded(qrVerification)
// we need to update the request as the state mapping depends on the
// sas or qr beeing started
verificationListenersHolder.dispatchRequestUpdated(matchingRequest)
return qrVerification.transactionId
}