cancelTakeSeatApplication method

void cancelTakeSeatApplication()

Implementation

void cancelTakeSeatApplication() {
  if (seatState.mySeatApplicationId.value.isEmpty) {
    LiveKitLogger.error("$tag getSeatApplicationList cancelTakeSeatApplication mySeatApplicationId is empty");
    return;
  }
  TUIActionCallback result = liveService.cancelRequest(seatState.mySeatApplicationId.value) as TUIActionCallback;
  if (result.code != TUIError.success) {
    LiveKitLogger.error("$tag cancelTakeSeatApplication [code:${result.code},message:${result.message}]");
    ErrorHandler.onError(result.code);
    return;
  }
  seatState.removeSeatApplication(seatState.mySeatApplicationId.value);
  seatState.mySeatApplicationId.value = "";
  viewState.linkStatus.value = LinkStatus.none;
}