/ SDKs / Android
SDKs
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Android
Version 4

Retrieve a list of muted users

Copy link

You can create a query to retrieve a list of muted users in both open and group channels. Only users registered as channel operators may use the following code.

Open channel

Copy link
// Retrieve muted participants. val query = channel.createMutedUserListQuery() query.next { restrictedUsers, e -> if (e != null) { // Handle error. } // ... } 

Group channel

Copy link
// Retrieve muted members. val query = groupChannel.createMemberListQuery( MemberListQueryParams().apply { mutedMemberFilter = MutedMemberFilter.MUTED } ) query.next { members, e -> if (e != null) { // Handle error. } // ... }