mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 15:30:27 +03:00
Prevent null rooms from ever rendering
This commit is contained in:
parent
f842356438
commit
9499289fb3
1 changed files with 3 additions and 1 deletions
|
|
@ -65,7 +65,9 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro
|
||||||
(!activeCallRoomId && viewedCallRoomId && !isCallActive)
|
(!activeCallRoomId && viewedCallRoomId && !isCallActive)
|
||||||
) {
|
) {
|
||||||
const roomIdToSet = (skipLobby ? activeCallRoomId : viewedCallRoomId) ?? '';
|
const roomIdToSet = (skipLobby ? activeCallRoomId : viewedCallRoomId) ?? '';
|
||||||
|
if (roomIdToSet === '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const widgetId = `element-call-${roomIdToSet}-${Date.now()}`;
|
const widgetId = `element-call-${roomIdToSet}-${Date.now()}`;
|
||||||
const newUrl = getWidgetUrl(
|
const newUrl = getWidgetUrl(
|
||||||
mx,
|
mx,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue