diff --git a/MatrixSDK/Crypto/Verification/Transactions/QRCode/MXQRCodeTransactionV2.swift b/MatrixSDK/Crypto/Verification/Transactions/QRCode/MXQRCodeTransactionV2.swift index 5974c44354..183c75504e 100644 --- a/MatrixSDK/Crypto/Verification/Transactions/QRCode/MXQRCodeTransactionV2.swift +++ b/MatrixSDK/Crypto/Verification/Transactions/QRCode/MXQRCodeTransactionV2.swift @@ -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 diff --git a/changelog.d/1816.bugfix b/changelog.d/1816.bugfix new file mode 100644 index 0000000000..ffab1b7a01 --- /dev/null +++ b/changelog.d/1816.bugfix @@ -0,0 +1 @@ +Fix | QR code verification failing due to incorrect encoding padding \ No newline at end of file