/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
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.

try {
  // Retrieve muted users.
  final query = MutedUserListQuery()
    ..channelType = ChannelType.open; // ChannelType can be open or group.

  final users = await query.next();
} catch (e) {
  // Handle error.
}