From e31b219bd4600c8c9e38429f9834f9e5175cced4 Mon Sep 17 00:00:00 2001 From: Brice-W Date: Mon, 26 Jul 2021 15:46:36 +1000 Subject: [PATCH] fix --- ts/interactions/conversationInteractions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/interactions/conversationInteractions.ts b/ts/interactions/conversationInteractions.ts index 5b08d275f..6a11be9e9 100644 --- a/ts/interactions/conversationInteractions.ts +++ b/ts/interactions/conversationInteractions.ts @@ -439,7 +439,9 @@ export async function deleteMessagesById( askUserForConfirmation: boolean ) { const conversationModel = getConversationController().getOrThrow(conversationId); - const selectedMessages = _.compact(await Promise.all(messageIds.map(m => getMessageById(m)))); + const selectedMessages = _.compact( + await Promise.all(messageIds.map(m => getMessageById(m, false))) + ); const moreThanOne = selectedMessages.length > 1;