updateSelfAudioState method
Implementation
void updateSelfAudioState(bool hasAudio, TUIChangeReason reason) {
currentUser.hasAudioStream.value = hasAudio;
if (reason == TUIChangeReason.changedByAdmin) {
if (hasAudio) {
makeToast(msg: 'microphoneTurnedOnByHostToast'.roomTr);
} else if (!roomInfo.isMicrophoneDisableForAllUser) {
makeToast(msg: 'microphoneTurnedOffByHostToast'.roomTr);
}
}
updateItemTouchableState();
}