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.settingsService.setTeamMessageMuteMode(
      teamId,
      NIMTeamType.typeNormal,
      mute
          ? NIMTeamMessageMuteMode.teamMessageMuteModeOn
          : NIMTeamMessageMuteMode.teamMessageMuteModeOff);
  return result.isSuccess;
}