From e220387b3fe2abe2c97bdfd603036b5614247839 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Fri, 23 May 2025 13:22:22 -0500 Subject: [PATCH] Corrects the state for the situations where both iframes are "active" (not necessarily visible) --- src/app/pages/client/call/PersistentCallContainer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/client/call/PersistentCallContainer.tsx b/src/app/pages/client/call/PersistentCallContainer.tsx index dcef81ae..e6258464 100644 --- a/src/app/pages/client/call/PersistentCallContainer.tsx +++ b/src/app/pages/client/call/PersistentCallContainer.tsx @@ -142,9 +142,9 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro ); useEffect(() => { - if ((activeCallRoomId && !viewedCallRoomId) || activeCallRoomId) + if ((activeCallRoomId && !viewedCallRoomId) || (activeCallRoomId && viewedCallRoomId)) setupWidget(primaryWidgetApiRef, primarySmallWidgetRef, primaryIframeRef, isPrimaryIframe); - if ((!activeCallRoomId && viewedCallRoomId) || viewedCallRoomId) + if ((!activeCallRoomId && viewedCallRoomId) || (viewedCallRoomId && activeCallRoomId)) setupWidget(backupWidgetApiRef, backupSmallWidgetRef, backupIframeRef, !isPrimaryIframe); }, [ setupWidget,