Fix padding

pull/335/head
Niels Andriesse 4 years ago
parent 440be57098
commit 0dd692cb42

@ -159,7 +159,7 @@ public final class MessageSender : NSObject {
// Serialize the protobuf // Serialize the protobuf
let plaintext: Data let plaintext: Data
do { do {
plaintext = try proto.serializedData() plaintext = (try proto.serializedData() as NSData).paddedMessageBody()
} catch { } catch {
SNLog("Couldn't serialize proto due to error: \(error).") SNLog("Couldn't serialize proto due to error: \(error).")
handleFailure(with: error, using: transaction) handleFailure(with: error, using: transaction)

Loading…
Cancel
Save