From 9499289fb35388c5c972bbbdccff09c744e7e690 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Sun, 25 May 2025 16:29:01 -0500 Subject: [PATCH] Prevent null rooms from ever rendering --- src/app/pages/client/call/PersistentCallContainer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/pages/client/call/PersistentCallContainer.tsx b/src/app/pages/client/call/PersistentCallContainer.tsx index 3e44df3e..cc597f0e 100644 --- a/src/app/pages/client/call/PersistentCallContainer.tsx +++ b/src/app/pages/client/call/PersistentCallContainer.tsx @@ -65,7 +65,9 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro (!activeCallRoomId && viewedCallRoomId && !isCallActive) ) { const roomIdToSet = (skipLobby ? activeCallRoomId : viewedCallRoomId) ?? ''; - + if (roomIdToSet === '') { + return; + } const widgetId = `element-call-${roomIdToSet}-${Date.now()}`; const newUrl = getWidgetUrl( mx,