From 4b55908d2285bfc44c9361fecb19af48a20a9f91 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Thu, 25 Sep 2025 10:44:33 +0100 Subject: [PATCH] Automatically update intent on mute change --- src/room/GroupCallView.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 => {