diff --git a/packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx b/packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx index d8d2230a75..d45555d5ce 100644 --- a/packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx +++ b/packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx @@ -602,7 +602,10 @@ const HLSView = () => { if (isFullScreen) { toggle(); } - toggleChat(); + // toggle and closing fullscreen takes few ms, to make it synced we are calling settimeout + setTimeout(() => { + toggleChat(); + }, 0); }} /> )} diff --git a/packages/roomkit-react/src/Stats/Stats.tsx b/packages/roomkit-react/src/Stats/Stats.tsx index 453b9275ee..72a639a22d 100644 --- a/packages/roomkit-react/src/Stats/Stats.tsx +++ b/packages/roomkit-react/src/Stats/Stats.tsx @@ -56,7 +56,7 @@ export function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = f } const layer = stat.rid ? simulcastMapping[stat.rid as RID] : ''; return ( - + {layer && } + + { - const statsLabel = {label}; + const statsLabel = {label}; return ( <>