[Bug]: Contextual bar actions do not work and duplicate reply names are allowed during edits
Nobody has claimed this yet.
- #71 by @sezallagwal — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- full-stack
Research direction
Start in ExecuteBlockActionHandler.ts to trace contextual bar interactions and in ReplyStorage.ts to inspect isUniqueReplyName during edits. Reproduce the Send, Edit, and Delete actions from /quick list, then try renaming a reply to an existing name. Done means all actions execute and duplicate names are rejected during editing.
Written by the indexing model from the issue text.
Description
What happened?
Overview
This issue covers two distinct bugs within the quick replies list (/quick list) and the editing flow.
Bug 1: Send, Edit, and Delete actions in quick replies list do nothing
When opening the quick replies list and clicking Send, Edit, or Delete from the overflow menu (⋮) on any reply, nothing happens — no modal opens, no error is shown.
Root Cause:
In ExecuteBlockActionHandler.ts, the room fallback uses strict equality:
if (room === undefined) {
For contextual bar block interactions, getInteractionData().room returns null (not undefined). The strict check misses null, forcing room to stay null. Following this, the if (room) guard around the Send/Edit/Delete switch evaluates to false, silently skipping the execution of all three actions.
Bug 2: Duplicate reply names allowed when editing
When editing a reply and changing its name to perfectly match another existing reply, the app accepts it and saves it instead of showing a validation error.
Root Cause:
In ReplyStorage.ts, the isUniqueReplyName method has a no-op comparison:
if (replyFound && replyId) {
replyFound.id === replyId; // comparison result is discarded!
return true; // always returns true
}
Steps to reproduce
- Open any channel and run
/quick list. - Click the overflow menu (⋮) on any reply.
- Click Send, Edit, or Delete.
- Expected: A modal opens for the selected action.
- Actual: Nothing happens.
Relevant ScreenShots
No response
Version
8.1.1
What browsers are you seeing the problem on?
Chrome
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RocketChat/Apps.QuickReplies
-
[Bug] Handle Gemini error responses safely in /quick aiPossibly taken @CodeMatrix1 claimed this 230 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
RocketChat/Apps.QuickReplies#82 · 1 comment ·
-
[Bug]: /quick ai error messages are not role-aware and lack actionable guidanceMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
[Feat] One Click AI-Powered Reply Suggestions for Improved UXMay be free again @moyrsd claimed this 583 days ago, and no pull request is open. Openenhancement
RocketChat/Apps.QuickReplies#59 · 3 comments · 1 assignee ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
RocketChat/Apps.QuickReplies#55 · 2 comments ·
All issues in RocketChat/Apps.QuickReplies
Similar issues
-
bug
Difficulty 2/5 Half a day Newbie friendliness 68/100
amosblomqvist/learnharness#758 ·
Maintainers usually reply within 2 days
-
Change WorkspacesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
bitfocus/companion-module-renewedvision-propresenter-api#134 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
rcpch/digital-growth-charts-react-component-library#304 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dsh-market/dsh-market#1210 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
trustjonathan/STUDY-HUB#13 ·