More correct filter (viewedRoom can return false on that compare in some cases)

This commit is contained in:
Gigiaj 2025-05-25 22:40:03 -05:00
parent bf131f76dc
commit df84eb1d71

View file

@ -85,10 +85,11 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro
(primarySmallWidgetRef.current?.roomId || backupSmallWidgetRef.current?.roomId) && (primarySmallWidgetRef.current?.roomId || backupSmallWidgetRef.current?.roomId) &&
(skipLobby (skipLobby
? activeClientWidget?.roomId && ? activeClientWidget?.roomId &&
//activeCallRoomId === activeClientWidget.roomId &&
(activeClientWidget.roomId === primarySmallWidgetRef.current?.roomId || (activeClientWidget.roomId === primarySmallWidgetRef.current?.roomId ||
activeClientWidget.roomId === backupSmallWidgetRef.current?.roomId) activeClientWidget.roomId === backupSmallWidgetRef.current?.roomId)
: viewedClientWidget?.roomId && : viewedClientWidget?.roomId &&
viewedRoomId === viewedClientWidget.roomId && viewedCallRoomId === viewedClientWidget.roomId &&
(viewedClientWidget.roomId === primarySmallWidgetRef.current?.roomId || (viewedClientWidget.roomId === primarySmallWidgetRef.current?.roomId ||
viewedClientWidget.roomId === backupSmallWidgetRef.current?.roomId)) viewedClientWidget.roomId === backupSmallWidgetRef.current?.roomId))
) { ) {