Ensure certain sender key payloads are serialized properly.

This commit is contained in:
Greyson Parrelli
2021-08-06 17:29:02 -04:00
parent 3c41b7322f
commit 67ccd14af2

View File

@@ -152,7 +152,7 @@ public interface EnvelopeContent {
@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);