updateBeInviteMode static method

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

更新入群模式

Implementation

static Future<bool> updateBeInviteMode(String teamId, bool isNeed) {
  NIMTeamUpdateFieldRequest request = NIMTeamUpdateFieldRequest();
  request.setBeInviteMode(isNeed
      ? NIMTeamBeInviteModeEnum.needAuth
      : NIMTeamBeInviteModeEnum.noAuth);
  return _updateTeam(teamId, request);
}