From c2dc613d32e1cfb41e11098db3bfe3cc19c2e723 Mon Sep 17 00:00:00 2001 From: Azar malik Date: Mon, 21 Oct 2024 23:13:27 +0530 Subject: [PATCH] fix: crash when deleting a message (#712) Co-authored-by: Dunsin <78784850+Dun-sin@users.noreply.github.com> --- client/src/components/Chat/DropDownOption.jsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/src/components/Chat/DropDownOption.jsx b/client/src/components/Chat/DropDownOption.jsx index 496f43d9..b4166e1f 100644 --- a/client/src/components/Chat/DropDownOption.jsx +++ b/client/src/components/Chat/DropDownOption.jsx @@ -42,11 +42,6 @@ const DropDownOptions = ({ id, isSender, inputRef, cancelEdit, setEditing, setRe return; } - updateMessage(id, { - ...messageObject, - status: 'pending', - }); - try { const messageDeleted = await deleteMessage({ id,