forked from github/cinny
Corrects the state for the situations where both iframes are "active" (not necessarily visible)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user