diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index dbc3ea18..fdc93bb3 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -128,6 +128,16 @@ export const GroupCallView: FC = ({ // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + // Update our member event when our mute state changes. + useEffect(() => { + if (!isJoined) { + return; + } + void rtcSession.updateCallIntent( + muteStates.video.enabled ? "video" : "audio", + ); + }, [isJoined, muteStates.video.enabled]); + useEffect(() => { logger.info("[Lifecycle] GroupCallView Component mounted"); return (): void => {