GetStream / stream-chat-swift

💬 iOS Chat SDK in Swift - Build your own app chat experience for iOS using the official Stream Chat API
https://getstream.io/chat/sdk/ios/
Other
849 stars 204 forks source link

Open Channels / Group Invites / WhatsApp Group links #2330

Closed tr736-reclip closed 1 year ago

tr736-reclip commented 1 year ago

What are you trying to achieve?

What i would like to be able to do is have an "open chat" where anybody can join if they know the CID. but i cant find support for this in the docs

Use Case:- User in app sends an "Group" invite to users x, y and z via a Deeplink. This Deeplink will contain a ChannelID. Once the user Installs the app and has signed up the Deeplink object is consumed and the user is placed into the channel.

The deeplinking we can do. It's having the ability for anybody to join a channel if they know the CID.

Think of this as an invite link. that you get on WhatsApp that when consumed directs and opens up the group.

If possible, how can you achieve this currently?

Possibly with permissions, but I need to give anonymous users join-channel rights?

polqf commented 1 year ago

Hi @tr736-reclip ,

If I understand you correctly, you want to create/edit a channel type so that it allows anyone to join it.

For that, you can go to Users and Permissions (https://dashboard.getstream.io/app/<your-app-id>/chat/rolespermissions/roles). In scope, select the channel type you want to edit.

Once there, you'll have a list of the available Roles and permissions for this channel. Just click on Edit for the role you want to edit, and add Join Own Channel as a Grant. Save the changes, and you should be ready to go.

polqf commented 1 year ago

Given the inactivity, we'll assume this issue has been solved.