muteAudioAction method
void
muteAudioAction()
Implementation
void muteAudioAction() {
if (_isOffSeatInSeatMode()) {
return;
}
if (_store.currentUser.hasAudioStream.value) {
_engineManager.muteLocalAudio();
return;
}
if (_store.roomInfo.isMicrophoneDisableForAllUser &&
_store.currentUser.userRole.value == TUIRole.generalUser) {
makeToast(msg: 'muteRoomReason'.roomTr);
return;
}
_engineManager.unMuteLocalAudio();
}