You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing a message, if the user clears the message text entirely and then presses the Send button (or Enter key), a confirmation modal appears asking if they want to delete the message. If the user selects Cancel to prevent deletion, the composer incorrectly exits editing mode while restoring the previous message text. As a result, sending the restored text creates a new message instead of updating the original one.
This issue occurs only when the edited message is completely removed before pressing Send, leading to unintended message duplication and disrupting the expected editing workflow.
Steps to Reproduce:
(Optional) Send a new message to any chatroom.
Click Edit Message on an existing message.
Clear the message text entirely.
Press Send (Enter key) or click the send button.
A warning modal appears with the message:
"Are you sure? You will not be able to recover this message!"
Click Cancel to prevent accidental deletion.
Expected behavior:
When canceling an empty message edit, the Composer should remain in editing mode, and the message should either be restored to its previous content or left as an empty draft, allowing the user to continue editing without disruption.
Actual behavior:
After canceling an empty message edit, the Composer restores the previous message text but exits editing mode. Sending the restored text creates a new message instead of updating the original one.
Description:
When editing a message, if the user clears the message text entirely and then presses the Send button (or Enter key), a confirmation modal appears asking if they want to delete the message. If the user selects Cancel to prevent deletion, the composer incorrectly exits editing mode while restoring the previous message text. As a result, sending the restored text creates a new message instead of updating the original one.
This issue occurs only when the edited message is completely removed before pressing Send, leading to unintended message duplication and disrupting the expected editing workflow.
Steps to Reproduce:
Expected behavior:
When canceling an empty message edit, the Composer should remain in editing mode, and the message should either be restored to its previous content or left as an empty draft, allowing the user to continue editing without disruption.
Actual behavior:
After canceling an empty message edit, the Composer restores the previous message text but exits editing mode. Sending the restored text creates a new message instead of updating the original one.
Server Setup Information:
yarn dsv
Client Setup Information
Pull Requests
35653
35655
35656: Optimal and Minimal
Additional context
Screen.Recording.2025-03-29.194759.mp4
The text was updated successfully, but these errors were encountered: