Skip to content

Commit

Permalink
Ensure certain sender key payloads are serialized properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Aug 6, 2021
1 parent 3c41b73 commit 67ccd14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public OutgoingPushMessage processSealedSender(SignalSessionCipher sessionCipher

@Override
public OutgoingPushMessage processUnsealedSender(SignalSessionCipher sessionCipher, SignalProtocolAddress destination) {
String body = Base64.encodeBytes(plaintextContent.getBody());
String body = Base64.encodeBytes(plaintextContent.serialize());
int remoteRegistrationId = sessionCipher.getRemoteRegistrationId();

return new OutgoingPushMessage(Type.PLAINTEXT_CONTENT_VALUE, destination.getDeviceId(), remoteRegistrationId, body);
Expand Down

0 comments on commit 67ccd14

Please sign in to comment.