简体   繁体   中英

Get notified of all new private channels in twilio programmable chat

I am designing a chat app where a user can create a private channel with a topic and all other logged in users will be notified about new private channels that get created. Users can then check the topic and if the topic is interesting, they can join the channel. The channels have to be private and cannot be public.

To achieve above goal, I assign "service admin" role to my users when creating tokens for them. And then on the client side (js SDK), I listen to the event "channelAdded" on the Twilio.Chat.Client instance.

The issue is, the event does not fire when new private channels are created. Does it mean that the even the service role I have assigned to my user is incorrect or the channelAdded method is not suppose to fire for new private channels?

In case "all users" should be seeing the private channels, this matches the definition of a Chat public channel , which you can use today.

Since all users will need to be able to find the channel in order to read the topic and decide to join the channel, these channels should be public.

Chat private channels are private by definition - only people invited to a private channel can see it.

Please note that "public" and "private" are only terms within your Chat Service Instance; public channels are not visible outside your service to third parties.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM