Skip to content

Commit

Permalink
fix: toggle chat in fullscreen landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 authored Mar 26, 2024
1 parent 86f1b82 commit a4c31b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
/>
)}
Expand Down

0 comments on commit a4c31b2

Please sign in to comment.