Skip to content

Commit

Permalink
fix: crash when deleting a message (#712)
Browse files Browse the repository at this point in the history
Co-authored-by: Dunsin <[email protected]>
  • Loading branch information
azr-arch and Dun-sin authored Oct 21, 2024
1 parent 01fd570 commit c2dc613
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/src/components/Chat/DropDownOption.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ const DropDownOptions = ({ id, isSender, inputRef, cancelEdit, setEditing, setRe
return;
}

updateMessage(id, {
...messageObject,
status: 'pending',
});

try {
const messageDeleted = await deleteMessage({
id,
Expand Down

0 comments on commit c2dc613

Please sign in to comment.