Prevent null rooms from ever rendering

This commit is contained in:
Gigiaj 2025-05-25 16:29:01 -05:00
parent f842356438
commit 9499289fb3

View file

@ -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,