appointAndLeaveAction method

void appointAndLeaveAction()

Implementation

void appointAndLeaveAction() async {
  var result = await _engineManager.changeUserRole(
      chosenUserId.value, TUIRole.roomOwner);
  if (result.code == TUIError.success) {
    _engineManager.exitRoom();
    Get.back();
    Get.back();
  } else {
    makeToast(msg: result.message!);
  }
}