updateTeamNotify static method

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

设置群消息不提醒

Implementation

static Future<bool> updateTeamNotify(String teamId, bool mute) async {
  var result = await NimCore.instance.teamService.muteTeam(
      teamId,
      mute
          ? NIMTeamMessageNotifyTypeEnum.mute
          : NIMTeamMessageNotifyTypeEnum.all);
  return result.isSuccess;
}