/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

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 listQuery = UserListQuery()
    ..queryType = UserListQueryType.muted;
        ..channelType=ChannelType.channel // Channel can be open or group.

    final users = await listQuery.loadNext();
} catch (e) {
    // Handle error.
}