From df84eb1d71ab93f73dd1e70e70b5b93a8e85fd91 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Sun, 25 May 2025 22:40:03 -0500 Subject: [PATCH] More correct filter (viewedRoom can return false on that compare in some cases) --- src/app/pages/client/call/PersistentCallContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/pages/client/call/PersistentCallContainer.tsx b/src/app/pages/client/call/PersistentCallContainer.tsx index cc597f0e..bf35b45e 100644 --- a/src/app/pages/client/call/PersistentCallContainer.tsx +++ b/src/app/pages/client/call/PersistentCallContainer.tsx @@ -85,10 +85,11 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro (primarySmallWidgetRef.current?.roomId || backupSmallWidgetRef.current?.roomId) && (skipLobby ? activeClientWidget?.roomId && + //activeCallRoomId === activeClientWidget.roomId && (activeClientWidget.roomId === primarySmallWidgetRef.current?.roomId || activeClientWidget.roomId === backupSmallWidgetRef.current?.roomId) : viewedClientWidget?.roomId && - viewedRoomId === viewedClientWidget.roomId && + viewedCallRoomId === viewedClientWidget.roomId && (viewedClientWidget.roomId === primarySmallWidgetRef.current?.roomId || viewedClientWidget.roomId === backupSmallWidgetRef.current?.roomId)) ) {