Implement thread message event listeners

Open
#1,350 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Diwaspant132 is already working on this.

Since Oct 27, 2026.

  • #1407 by @Diwaspant132 — open
  • #1408 by @swarnendusahu10-dotcom — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
api

Research direction

Start in packages/api/src/EmbeddedChatApi.ts at the TODO on line 239 and inspect _doConnect(). Compare the existing message and notification subscriptions and trace the callback system. Done means thread messages invoke the registered listeners and deliver real-time updates consistently with regular message events.

Written by the indexing model from the issue text.

Description

bug
Description:

Currently, there is a TODO in packages/api/src/EmbeddedChatApi.ts (line 239) that requires implementing logic to call thread message event listeners

Steps to reproduce:
  1. Open a thread in a Rocket.Chat room
  2. Send a message in the thread
  3. Observe that thread message event listeners are not being called
Expected behavior:
  • Thread messages should trigger event listeners
  • Components listening to thread messages should receive updates in real-time
  • Thread message events should be handled similarly to regular message events
Actual behavior:
  • Thread message event listeners are not being invoked
  • Components do not receive thread message updates
  • The TODO comment indicates this functionality is not yet implemented
Implementation Notes:
  • This should be implemented in the _doConnect() method (like other subscriptions)
  • Should follow the existing pattern for message and notification subscriptions
  • Needs to integrate with the callback system already in place
Dominant language
JavaScript
Stars
171
Forks
421
Avg merge
3d 6h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/EmbeddedChat

All issues in RocketChat/EmbeddedChat

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.