From 09dec1246a06ccdfbb21a270d20992fde93f1aa1 Mon Sep 17 00:00:00 2001 From: Will G Date: Wed, 29 Jun 2022 17:34:52 +1000 Subject: [PATCH] refactor: Removed duplicate callNotificationType check in Message getDescription() --- ts/models/message.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ts/models/message.ts b/ts/models/message.ts index d16e57701..36cd675f3 100644 --- a/ts/models/message.ts +++ b/ts/models/message.ts @@ -1295,21 +1295,6 @@ export class MessageModel extends Backbone.Model { return window.i18n('answeredACall', [displayName]); } } - if (this.get('callNotificationType')) { - const displayName = getConversationController().getContactProfileNameOrShortenedPubKey( - this.get('conversationId') - ); - const callNotificationType = this.get('callNotificationType'); - if (callNotificationType === 'missed-call') { - return window.i18n('callMissed', [displayName]); - } - if (callNotificationType === 'started-call') { - return window.i18n('startedACall', [displayName]); - } - if (callNotificationType === 'answered-a-call') { - return window.i18n('answeredACall', [displayName]); - } - } return this.get('body'); } }