From 1522e5102d7b71d3f79ca3c85763d839fa02c778 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Fri, 1 Oct 2021 15:13:02 +1000 Subject: [PATCH] removed isCall property from message. Fixed text --- _locales/en/messages.json | 2 +- ts/models/messageType.ts | 1 - ts/receiver/contentMessage.ts | 1 - ts/session/utils/CallManager.ts | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 51aa6eb55..ecb4b57b0 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -450,7 +450,7 @@ "endCall": "End call", "micAndCameraPermissionNeededTitle": "Camera and Microphone access required", "micAndCameraPermissionNeeded": "You can enable microphone and camera access under: Settings (Gear icon) => Privacy", - "unableToCall": "Cancel your exiting call session.", + "unableToCall": "cancel your ongoing call first", "unableToCallTitle": "Cannot start new call", "callMissed": "Missed call from $name$", "callMissedTitle": "Call missed" diff --git a/ts/models/messageType.ts b/ts/models/messageType.ts index 41df5c4a2..6e7509cdc 100644 --- a/ts/models/messageType.ts +++ b/ts/models/messageType.ts @@ -177,7 +177,6 @@ export interface MessageAttributesOptionals { direction?: any; messageHash?: string; isDeleted?: boolean; - isCall?: boolean; } /** diff --git a/ts/receiver/contentMessage.ts b/ts/receiver/contentMessage.ts index bf6477cb9..c3f900f33 100644 --- a/ts/receiver/contentMessage.ts +++ b/ts/receiver/contentMessage.ts @@ -569,7 +569,6 @@ export async function handleDataExtractionNotification( }, unread: 1, // 1 means unread expireTimer: 0, - isCall: true, }); convo.updateLastMessage(); } diff --git a/ts/session/utils/CallManager.ts b/ts/session/utils/CallManager.ts index 3a661724f..98491f8ae 100644 --- a/ts/session/utils/CallManager.ts +++ b/ts/session/utils/CallManager.ts @@ -414,7 +414,6 @@ async function handleMissedCall(sender: string, incomingOfferTimestamp: number) expireTimer: 0, body: 'Missed call', unread: 1, - isCall: false, }); incomingCallConversation?.updateLastMessage(); return;