From 15560a4cb58c185c41b96079e0fe0fef943a0fbd Mon Sep 17 00:00:00 2001 From: Mikunj Date: Thu, 21 May 2020 16:44:18 +1000 Subject: [PATCH] Linting and comments --- ts/session/messages/outgoing/OutgoingContentMessage.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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();