Fix the mute icon being incorrect when using PTT

We were manipulating the participant's mute state directly for some
reason, just for setting the mute state directly, which bypased the
mutestates hook.
This commit is contained in:
David Baker
2023-09-06 11:45:01 +01:00
parent 0a7723d218
commit 00f14c9814

View File

@@ -190,7 +190,8 @@ export function InCallView({
containerRef1,
toggleMicrophone,
toggleCamera,
async (muted) => await localParticipant.setMicrophoneEnabled(!muted)
(muted) =>
muteStates?.audio?.setEnabled && muteStates.audio.setEnabled(!muted)
);
const onDisconnected = useCallback(