Channel Participation
Members Query
You can get a list of all members, or add memberships
, roles
, search
parameters to get certain members of the channel.
Manage Members
You can also add and remove members, as well as remove yourself as a member of the channel (leaving the channel).
Reading Status And Unread Count
You can get the number of unread messages in a channel through the unreadCount
field.
The startReading()
and stopReading()
methods let the server know that the current user is reading a channel. After the startReading()
and stopReading()
methods are called, the unreadCount
is reset to 0.
You can call both methods as many times as you require. The SDK takes care of multiple device management: thus, a user can read multiple channels from one or more devices simultaneously. In case of an abrupt disconnection (be it the app has been terminated or the Internet is down, etc.), the SDK backend automatically calls the stopReading
command on behalf of the user.
Moderation
ChannelModeration
class provides various methods to moderate the users present in channel. You can ban/unban users, assign roles or remove it from user.
Note:
The channel creator is automatically assigned as the channel moderator.
The previous/last moderator is not allowed to leave a community and an error is displayed.
The channel moderator can promote a user/member to moderator.
The channel moderator can demote a moderator to a user/member.
This applies only to Live and Community channels’. This does not apply to Conversation Channel.
Last updated