mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +03:00
Corrects the state for the situations where both iframes are "active" (not necessarily visible)
This commit is contained in:
parent
03cbecc3f9
commit
e220387b3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue