Skip to content

Commit

Permalink
Merge pull request #1816 from matrix-org/bca/fix_qr_scanning
Browse files Browse the repository at this point in the history
Fix passing padded base64 instead of unpadded
  • Loading branch information
BillCarsonFr authored Sep 8, 2023
2 parents cfca47d + 96f7bc3 commit 8942e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MXQRCodeTransactionV2: NSObject, MXQRCodeTransaction {
log.debug("->")

let data = MXQRCodeDataCoder().encode(otherQRCodeData)
let string = MXBase64Tools.base64(from: data)
let string = MXBase64Tools.unpaddedBase64(from: data)
guard let result = request.scanQrCode(data: string) else {
log.failure("Failed scanning QR code")
return
Expand Down
1 change: 1 addition & 0 deletions changelog.d/1816.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix | QR code verification failing due to incorrect encoding padding

0 comments on commit 8942e15

Please sign in to comment.