RocketChat / RocketChat/Rocket.Chat

Caching issue -- Problems when owner is removed from a team or channel and then added again

Open
#33,162 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

There's a caching issue when a user is removed and then re-added to a room. If the user was an owner, after he is added back it shows as if he was still an owner. If you refresh the screen you will see that he is no longer an owner (which is the correct behavior)

Steps to reproduce:
  1. Add a new admin user to a channel or team.
  2. Remove the user.
  3. Add the user back, When adding it back, the user is still shown as an owner.
Expected behavior:

The user should not be shown as an owner.

Actual behavior:

The user is shown as an owner

https://github.com/user-attachments/assets/29e53091-b510-4762-acec-09babbc3b916

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

Reproduce the issue by adding, removing, and re-adding an admin user in a channel or team, then trace the owner display and its cache-update path. Confirm the fix by checking that the user is not shown as an owner before a refresh and remains correct after refreshing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.