leaveSeat method

void leaveSeat()

Implementation

void leaveSeat() {
  if (RoomStore.to.currentUser.userRole.value == TUIRole.administrator) {
    _engineManager.leaveSeat();
    return;
  }
  showConferenceDialog(
    title: 'leaveSeatTitle'.roomTr,
    message: 'leaveSeatMessage'.roomTr,
    confirmText: 'leaveSeat'.roomTr,
    cancelText: 'cancel'.roomTr,
    onConfirm: () {
      _engineManager.leaveSeat();
      Get.back();
    },
  );
}