From 46b3032a058c7ae50d7394971e91c1ec1a0d3b17 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Thu, 21 May 2020 16:31:15 +1000 Subject: [PATCH] Remove MessageCategory. We don't need this as we can infer the encryption type from the message. --- .../messages/outgoing/OutgoingContentMessage.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ts/session/messages/outgoing/OutgoingContentMessage.ts b/ts/session/messages/outgoing/OutgoingContentMessage.ts index 2789a410c..ccb9abf8c 100644 --- a/ts/session/messages/outgoing/OutgoingContentMessage.ts +++ b/ts/session/messages/outgoing/OutgoingContentMessage.ts @@ -4,17 +4,14 @@ import { SignalService } from '../../../protobuf'; export class OutgoingContentMessage implements OutgoingMessage { public timestamp: number; public identifier: string; - public category: OutgoingContentMessage.MessageCategory; public ttl: number; constructor( timestamp: number, identifier: string, - category: OutgoingContentMessage.MessageCategory, ttl: number ) { this.timestamp = timestamp; this.identifier = identifier; - this.category = category; this.ttl = ttl; } @@ -50,11 +47,3 @@ export class OutgoingContentMessage implements OutgoingMessage { return messagePartCount * 160; } } - -export namespace OutgoingContentMessage { - export enum MessageCategory { - Secure, - SessionReset, - MediumGroup, - } -}