initItemTouchableState method
void
initItemTouchableState()
Implementation
void initItemTouchableState() {
if (roomInfo.isMicrophoneDisableForAllUser &&
currentUser.userRole.value == TUIRole.generalUser) {
isMicItemTouchable.value = false;
}
if (roomInfo.isCameraDisableForAllUser &&
currentUser.userRole.value == TUIRole.generalUser) {
isCameraItemTouchable.value = false;
}
if (isRoomNeedTakeSeat() && !currentUser.isOnSeat.value) {
isMicItemTouchable.value = false;
isCameraItemTouchable.value = false;
}
}