[Bug] /qs preview selection loses the active thread
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Start with QsCommand.executePreviewItem and the existing sendMessage helper, which the issue identifies as the relevant entry points. Check how the Apps Engine thread ID is obtained from the command context, then review the regression coverage for threaded and top-level contexts in the open pull request. Done means selected replies retain the supplied thread ID while top-level replies remain top-level.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened?
When the Apps Engine supplies a thread ID to /qs, selecting a saved reply sends it as a top-level room message. QsCommand.executePreviewItem does not pass the thread ID to sendMessage, although the helper already supports it.
Steps to reproduce
- Have a saved quick reply available.
- Run
/qsfrom an existing thread and select the reply preview. - Inspect the outgoing message. With a thread ID in the slash-command context, it should be addressed to that thread. Without one, it should remain a top-level message.
Verification
Reproduced on main at fa72dc4 using a Node test with Apps Engine accessors stubbed. The outgoing message had the correct room and text but no thread ID. The top-level control passed. No live Rocket.Chat session was used.
Proposed fix
Forward context.getThreadId() to the existing sendMessage helper. I plan to include regression coverage for both contexts.
AI assistance was used for the local reproduction and report.
- Lingua principale
- TypeScript
- Stelle
- 7
- Fork
- 22
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/Apps.QuickReplies
-
[Bug] AI auto-suggest accepts non-text and blank suggestionsForse già presa @MuhammadFaizan-prog l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
-
[Bug] Quick reply action buttons open before the room context is savedForse già presa @MuhammadFaizan-prog l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
[Bug] Saving a quick reply can overwrite saved replies after a storage read failureForse già presa @MuhammadFaizan-prog l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
[Bug] /quick grammar posts corrected text outside the active threadForse già presa @MuhammadFaizan-prog l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
-
[Bug] Quick replies leave [room] unresolved without a recipientForse già presa @MuhammadFaizan-prog l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
Tutte le issue di RocketChat/Apps.QuickReplies
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zabuton-app/meguri#875 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
iruzen-dono/workless#117 ·
I maintainer di solito rispondono entro 1 giorno
-
area:api area:web wave wave:trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vetro-protocol/vetro-monorepo#1321 ·
I maintainer di solito rispondono entro 1 giorno