updateSelfRole method
void
updateSelfRole(
- TUIRole role
Implementation
void updateSelfRole(TUIRole role) {
if (isRoomNeedTakeSeat() &&
!RoomStore.to.currentUser.isOnSeat.value &&
role == TUIRole.roomOwner) {
RoomEngineManager().takeSeat(_seatIndex, _reqTimeout, null);
}
if (role == TUIRole.roomOwner && !currentUser.ableSendingMessage.value) {
RoomEngineManager()
.disableSendingMessageByAdmin(currentUser.userId.value, false);
}
}