From f5238982c3c199c987bd12faaa85bd12484b0293 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 12 May 2021 15:47:17 +1000 Subject: [PATCH] Add missing message padding --- .../libsession/messaging/sending_receiving/MessageSender.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt index 84afeff63b..df7a0d7df8 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt @@ -258,11 +258,11 @@ object MessageSender { } val proto = message.toProto()!! - + val plaintext = PushTransportDetails.getPaddedMessageBody(proto.toByteArray()) val openGroupMessage = OpenGroupMessageV2( sender = message.sender, sentTimestamp = message.sentTimestamp!!, - base64EncodedData = Base64.encodeBytes(proto.toByteArray()), + base64EncodedData = Base64.encodeBytes(plaintext), ) OpenGroupAPIV2.send(openGroupMessage,room,server).success {