Skip to main content
Use join and leave operations when the current user needs to enter or exit an existing channel. Joining does not create a missing channel, and conversation channels are already membership-managed by the SDK, so calling join or leave on a conversation channel can fail on platforms that enforce that restriction.

Platform Surface

Parameters

Join A Channel

Join adds the current user as a member of an existing channel. On iOS, joining an already joined channel returns the existing channel. On TypeScript, the API returns true when the returned membership is member.

Leave A Channel

Leave removes the current user’s membership from the channel. After leaving, stop routing the user into the channel UI and refresh any channel list or unread-count state that depends on membership.

Check Current Membership

Use current membership state to hide composer controls, redirect banned users, or distinguish a channel that is only visible from one the user has joined.

Query Members

Retrieve and filter channel members.

Preview Members

Render lightweight participant previews where the SDK exposes them.

Get Channels

Load channel objects before routing users into a chat screen.

Ban Management

Handle moderation states that affect membership.