diff --git a/ts/session/messages/outgoing/OutgoingContentMessage.ts b/ts/session/messages/outgoing/OutgoingContentMessage.ts index ccb9abf8c..da01ec9f7 100644 --- a/ts/session/messages/outgoing/OutgoingContentMessage.ts +++ b/ts/session/messages/outgoing/OutgoingContentMessage.ts @@ -5,16 +5,15 @@ export class OutgoingContentMessage implements OutgoingMessage { public timestamp: number; public identifier: string; public ttl: number; - constructor( - timestamp: number, - identifier: string, - ttl: number - ) { + constructor(timestamp: number, identifier: string, ttl: number) { this.timestamp = timestamp; this.identifier = identifier; this.ttl = ttl; } + // To discuss: + // should padding be the responsibility of the message or should it be the responsibility of the message sender to pad messages + // If it is the responsibility of the sender then `contentProto()` needs to become `protected` and not `public` public plainTextBuffer(): Uint8Array { const encoded = SignalService.Content.encode(this.contentProto()).finish();