[Bug] /qs preview selection loses the active thread

Aperta
#86 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@MuhammadFaizan-prog ci sta già lavorando.

Dal 3/12/2026.

  • #87 di @MuhammadFaizan-prog — aperta

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
  1. Have a saved quick reply available.
  2. Run /qs from an existing thread and select the reply preview.
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/Apps.QuickReplies

Tutte le issue di RocketChat/Apps.QuickReplies

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.