diff --git a/src/components/views/elements/crypto/VerificationQRCode.js b/src/components/views/elements/crypto/VerificationQRCode.js index b7232048e5..3838aa61ff 100644 --- a/src/components/views/elements/crypto/VerificationQRCode.js +++ b/src/components/views/elements/crypto/VerificationQRCode.js @@ -127,7 +127,7 @@ export default class VerificationQRCode extends React.PureComponent { }; const appendInt = (i: number) => { const tmpBuf = Buffer.alloc(2); - tmpBuf.writeInt8(i, 0); + tmpBuf.writeInt16BE(i, 0); buf = Buffer.concat([buf, tmpBuf]); }; const appendStr = (s: string, enc: string, withLengthPrefix = true) => {