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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user