Properly unpad incoming sender key messages

This commit is contained in:
Scott Nonnenberg 2021-05-28 09:06:09 -07:00 committed by GitHub
parent ee41e4f71d
commit b63d8e908c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1285,7 +1285,7 @@ class MessageReceiverInner extends EventTarget {
return result;
}
if (result instanceof Buffer) {
return typedArrayToArrayBuffer(result);
return this.unpad(typedArrayToArrayBuffer(result));
}
const content = typedArrayToArrayBuffer(result.message());