Skip to content

Commit

Permalink
Properly unpad incoming sender key messages
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed May 28, 2021
1 parent ee41e4f commit b63d8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/textsecure/MessageReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b63d8e9

Please sign in to comment.