muteAllMembers static method

Future<bool> muteAllMembers(
  1. String teamId,
  2. bool mute
)

对整个群禁言、解除禁言,对普通成员生效,只有群组、管理员有权限

Implementation

static Future<bool> muteAllMembers(String teamId, bool mute) async {
  var result =
      await NimCore.instance.teamService.muteAllTeamMember(teamId, mute);
  return result.isSuccess;
}