RocketChat / RocketChat/Rocket.Chat

Using Apps-Engine IRoomBuilder to rename room does not trigger callbacks

Open
#30,587 1 comment 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

When modifying room from Apps-Engine IRoomBuilder, it calls

https://github.com/RocketChat/Rocket.Chat/blob/e666487c3d74613183f00933dcc01b590d5f498e/apps/meteor/app/apps/server/bridges/rooms.ts#L118-L138

This bypasses all hooks leaving client possibly in undesirable state.
This should call saveRoomSettings as api call does.

For example is you rename room, User will continue to see old room in sidebar list and navigating to it gives error.

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 in apps/meteor/app/apps/server/bridges/rooms.ts at lines 118-138 and compare the IRoomBuilder room-modification path with the API path that calls saveRoomSettings. Trace the callback behavior for a room rename; done means the Apps-Engine change triggers the same hooks so the sidebar and room navigation receive the updated name.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.