-
Notifications
You must be signed in to change notification settings - Fork 360
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
EmbeddedChat has stopped loading previous messages after the recent merges.
The client ends up calling the private room history endpoint for a public room. For example, for the public room GENERAL, it sends:
GET /api/v1/groups.messages?roomId=GENERAL
That returns 400 Bad Request, and the chat history does not load.
Steps to reproduce:
- Run EmbeddedChat/Storybook against a Rocket.Chat workspace that has a public room like
GENERALand at least one private room. - Open a story and join any public room.
- Check the network tab and the chat history loading behavior.
Expected behavior:
EmbeddedChat should detect the active room type correctly and use the matching endpoint every time.
For a public room like GENERAL, it should call:
GET /api/v1/channels.messages?roomId=GENERAL
Previous messages should load normally.
Actual behavior:
EmbeddedChat calls:
GET /api/v1/groups.messages?roomId=GENERAL
That request returns 400 Bad Request, and previous messages/chat history do not load.
Screenshot

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working