updateBeInviteMode static method

Future<bool> updateBeInviteMode(
  1. String teamId,
  2. NIMTeamType type,
  3. bool isNeed
)

更新入群模式

Implementation

static Future<bool> updateBeInviteMode(
    String teamId, NIMTeamType type, bool isNeed) {
  NIMUpdateTeamInfoParams params = NIMUpdateTeamInfoParams();
  params.agreeMode = isNeed
      ? NIMTeamAgreeMode.agreeModeAuth
      : NIMTeamAgreeMode.agreeModeNoAuth;
  return _updateTeam(teamId, type, params);
}