Linting and comments

pull/1160/head
Mikunj 5 years ago
parent 46b3032a05
commit 15560a4cb5

@ -5,16 +5,15 @@ export class OutgoingContentMessage implements OutgoingMessage {
public timestamp: number; public timestamp: number;
public identifier: string; public identifier: string;
public ttl: number; public ttl: number;
constructor( constructor(timestamp: number, identifier: string, ttl: number) {
timestamp: number,
identifier: string,
ttl: number
) {
this.timestamp = timestamp; this.timestamp = timestamp;
this.identifier = identifier; this.identifier = identifier;
this.ttl = ttl; 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 { public plainTextBuffer(): Uint8Array {
const encoded = SignalService.Content.encode(this.contentProto()).finish(); const encoded = SignalService.Content.encode(this.contentProto()).finish();

Loading…
Cancel
Save