mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 02:37:46 +00:00
Add missing message padding
This commit is contained in:
parent
174bccb0b7
commit
f5238982c3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user