I am using the API’s to create users and channels, then I’m programmatically adding users to channels. I’ve tried channels.invite and channels.join. I can see the channels in the channels.joined.list, but when the user opens the embedded UI (/channel/${channel}?layout=embedded), the user is still prompted to join the channel. How can I prevent that from happening?
Be very helpful if you told us some server background.
Eg
Not sure where you saw those calls but I can’t see them here? :
I’m running version 7.7.1 locally. I am using the embedded UI via iFrame. Before the user gets to the iFrame, I have created the channels, created their user and have called channels.join with the specific channels I want them to be a part of. When the user goes to the iFrame and I pass the channel ID and token, they get the UI in the iFrame, but also see a Join Button. If I run channels.joined.list, I see the channels listed, but it’s still prompting them to join the channel.
I have seen the same question asked fairly recently (last 6-8 months) either here, github or open.
Please have a good search as I think they found a solution but I can’t find it
Possibly this?
That was helpful and I’m really close. I am getting the UI to show up without the Join button, but I keep getting just a skeleton at the bottom where the messaging box should be.
I can get it to work with the general channel, but any other channels that I’ve created and have joined the user to, I get the grey message section.
Ok, figured it out. Gotta use the channelName, not the channelId. Thanks y’all.