fix: Mentions popup remains open after canceling message edit
Merged
AL
8mo ago+72+72+01234567890123456789-4-4-0123456789
Proposed changes (including videos or screenshots)
This PR fixes an issue causing the composer's mentions popup to not close when canceling a message edit specifically by clicking on the "Cancel" button.
Before:
After:
Issue(s)
Steps to test or reproduce
- Navigate to any chat room.
- Send a normal message without any tags or special formatting.
- Locate the message you just sent and begin editing it.
- While in edit mode, type "@" in the message box to trigger the mentions tab.
- Cancel the message edit (βEscβ).
- Observe the mentions tab.
Further comments
Summary by CodeRabbit
- Bug Fixes
- Mention popup now closes reliably when canceling message edits (via Cancel button or Escape) and refreshes correctly if the edit content changes.
- Tests
- Added end-to-end tests covering message-edit cancellation and mention popup behavior to prevent regressions.