RocketChat / RocketChat/Rocket.Chat
Caching issue -- Problems when owner is removed from a team or channel and then added again
Nobody has claimed this yet.
- 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:
- Add a new admin user to a channel or team.
- Remove the user.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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