Remove MessageCategory.

We don't need this as we can infer the encryption type from the message.
pull/1160/head
Mikunj 5 years ago
parent 9bd08ba930
commit 46b3032a05

@ -4,17 +4,14 @@ import { SignalService } from '../../../protobuf';
export class OutgoingContentMessage implements OutgoingMessage { export class OutgoingContentMessage implements OutgoingMessage {
public timestamp: number; public timestamp: number;
public identifier: string; public identifier: string;
public category: OutgoingContentMessage.MessageCategory;
public ttl: number; public ttl: number;
constructor( constructor(
timestamp: number, timestamp: number,
identifier: string, identifier: string,
category: OutgoingContentMessage.MessageCategory,
ttl: number ttl: number
) { ) {
this.timestamp = timestamp; this.timestamp = timestamp;
this.identifier = identifier; this.identifier = identifier;
this.category = category;
this.ttl = ttl; this.ttl = ttl;
} }
@ -50,11 +47,3 @@ export class OutgoingContentMessage implements OutgoingMessage {
return messagePartCount * 160; return messagePartCount * 160;
} }
} }
export namespace OutgoingContentMessage {
export enum MessageCategory {
Secure,
SessionReset,
MediumGroup,
}
}

Loading…
Cancel
Save