-
Notifications
You must be signed in to change notification settings - Fork 328
Description
EmbeddedChat component fails to function properly when attempting to connect to Direct Messages (DMs) and Private Channels in Rocket.Chat. The component works correctly with public channels but encounters issues with private room types.
Environment
Rocket.Chat Server: localhost:3102
User: xxxx (ID: NxQupzo5KTHwkCgAX)
Auth Token: Valid and verified
Room Type: Private Channels / Direct Messages
Example Room ID: 69321c45a340bdc91ea303cb
Current Behavior
When attempting to use EmbeddedChat with private channels or DMs:
The component fails to load the chat interface properly
Authentication appears to succeed (valid token and user ID)
Room access is denied despite valid credentials
Expected Behavior
EmbeddedChat should work seamlessly with:
✅ Public channels
❌ Private channels
❌ Direct Messages (DMs)
Technical Details
Authentication Data
json
{
"userId": "NxQupzo5KTHwkCgAX",
"authToken": "mYu1uNr49meFT28nd7Dia70OJj6fg1YUu6NDPyyiI2C",
"username": "xxx",
"roles": ["user"],
"status": "online"
}
API Request Example
bash
curl 'http://localhost:3102/api/v1/channels.members?roomId=69321c45a340bdc91ea303cb'
-H 'X-Auth-Token: mYu1uNr49meFT28nd7Dia70OJj6fg1YUu6NDPyyiI2C'
-H 'X-User-Id: NxQupzo5KTHwkCgAX'
Steps to Reproduce
Initialize EmbeddedChat with valid auth credentials
Attempt to connect to a private channel or DM using room ID
Observe that the chat interface fails to load or shows permission errors
Compare with public channel behavior (works correctly)
Additional Context
This issue is blocking the implementation of a complete chat solution that requires support for private conversations and direct messaging functionality.