muteAllMembers method

Future<void> muteAllMembers(
  1. String groupId
)

Mutes all group members. Only the group owner and admins can call this method.

Param groupId The group ID.

Returns None.

Throws Exception description, see ChatError.

Implementation

Future<void> muteAllMembers(String groupId) async {
  try {
    Map req = {'groupId': groupId};
    Map result = await platform_interface.Client.instance.groupManager
        .callNativeMethod(ChatMethodKeys.muteAllMembers, req);
    ChatError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}