From 7808adbbe11820c1d54d294ade60633c8553dff9 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Sat, 3 May 2025 00:07:00 -0500 Subject: [PATCH] add (really badly) state logic for the active iframe --- src/app/pages/call/PersistentCallContainer.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/pages/call/PersistentCallContainer.tsx b/src/app/pages/call/PersistentCallContainer.tsx index 679b722d..f244150e 100644 --- a/src/app/pages/call/PersistentCallContainer.tsx +++ b/src/app/pages/call/PersistentCallContainer.tsx @@ -33,6 +33,7 @@ export function PersistentCallContainer({ isVisible, viewedRoomId }: PersistentC activeCallRoomId, isChatOpen, isCallActive, + isPrimaryIframe, setActiveCallRoomId, registerActiveClientWidgetApi, } = useCallState(); @@ -222,7 +223,7 @@ export function PersistentCallContainer({ isVisible, viewedRoomId }: PersistentC position: 'absolute', top: 0, left: 0, - display: isViewingActiveCall ? 'flex' : 'none', + display: isPrimaryIframe || isViewingActiveCall ? 'flex' : 'none', width: '100%', height: '100%', border: 'none', @@ -242,7 +243,7 @@ export function PersistentCallContainer({ isVisible, viewedRoomId }: PersistentC height: '100%', border: 'none', - display: isViewingActiveCall ? 'none' : 'flex', + display: !isPrimaryIframe || isViewingActiveCall ? 'none' : 'flex', }} title={`Persistent Element Call`} sandbox="allow-forms allow-scripts allow-same-origin allow-popups allow-modals allow-downloads"