From 5623fa415f78334f57677c4c6fcdafef26eb20f3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 15 Nov 2022 17:33:58 +0000 Subject: [PATCH] Also update connection states when participants change --- src/room/InCallView.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 67d97750..9935985b 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -214,6 +214,10 @@ export function InCallView({ }; }, [calls, updateConnectionStates]); + useEffect(() => { + updateConnectionStates(); + }, [participants, updateConnectionStates]); + useEffect(() => { widget?.api.transport.send( layout === "freedom"