Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR Code validation fails when trying to validate a device #7680

Closed
fnwtv opened this issue Sep 20, 2023 · 1 comment
Closed

QR Code validation fails when trying to validate a device #7680

fnwtv opened this issue Sep 20, 2023 · 1 comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@fnwtv
Copy link

fnwtv commented Sep 20, 2023

Steps to reproduce

When trying to validate a device with QR Code using the iPhone camera, I can see the alert "QR code has been successfully validated" but in the logs I see "Failed scanning QR code" without further explanation. The other device with the already validated device is an android phone.

I've tried to debug and it seems like coming from MXQRCodeTransactionV2.swift in the SDK:

https://github.com/matrix-org/matrix-ios-sdk/blob/8bf871104ef1120135e142cc7cd43701668ac023/MatrixSDK/Crypto/Verification/Transactions/QRCode/MXQRCodeTransactionV2.swift#L108

Looking further I found that in MatrixSDKCrypto.swift, it seems like rustCall in scanQrCode is returning nil , even if the data passed is not nil. From there I can't really understand why it's happening.

Outcome

What did you expect?

QR Code to be really validated

What happened instead?

QR Code is said validated to the user, but in the logs it's not. And the validation process fails

Your phone model

iPhone 14 Pro Max

Operating system version

iOS 16.6

Application version

1.10.14

Homeserver

Synapse

Will you send logs?

No

@fnwtv fnwtv added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Sep 20, 2023
@fnwtv fnwtv changed the title QR Code validation fails when QR Code validation fails when trying to validate a device Sep 20, 2023
@fnwtv
Copy link
Author

fnwtv commented Sep 20, 2023

Issue is solved in the newest version of the app. Thanks

@fnwtv fnwtv closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
Status: Closed
Development

No branches or pull requests

1 participant