RocketChat / RocketChat/Rocket.Chat

[BUG] Realtime API: subscriptions-changed does not include room ID when a room is left

Open
#12,208 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

In the stream-notify-user, the subscriptions-changed event received when a room is left does not tell which room was left

Steps to reproduce:
  1. Connect to Realtime API, log in, subscribe to stream-notify-user
  2. Add user to a room
  3. Remove user from a room
Expected behavior:

I receive an event via the Realtime API telling that the user was removed from a room, and which room.

Actual behavior:

Event without information about WHICH room was left.

Server Setup Information:
  • Version of Rocket.Chat Server: latest devel
  • Operating System: MacOS
  • Deployment Method: NPM
  • Number of Running Instances: 1
  • DB Replicaset Oplog: n/a
  • NodeJS Version: v10.10.0
  • MongoDB Version: n/a
Additional context

A fix has been submitted at #12078

Contributor guide

Open the 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.

Research direction

Start by reviewing the Realtime API's stream-notify-user and subscriptions-changed event handling, then inspect the fix referenced in #12078. Confirm that the event emitted after a room is left identifies which room was left, and verify the existing reproduction steps against that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.