From 376a1bdbc0635e6c060619820fd2a56d686d121a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Wed, 11 Sep 2024 14:43:45 -0300 Subject: [PATCH] fix hide presentation on join --- .../components/layout/push-layout/pushLayoutEngine.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx b/bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx index 93ddbe2368a3..603f2819d800 100644 --- a/bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx +++ b/bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx @@ -55,6 +55,7 @@ const propTypes = { shouldShowExternalVideo: PropTypes.bool, enforceLayout: PropTypes.string, setLocalSettings: PropTypes.func.isRequired, + hasMeetingLayout: PropTypes.bool, }; const PushLayoutEngine = (props) => { @@ -88,6 +89,7 @@ const PushLayoutEngine = (props) => { selectedLayout, setMeetingLayout, setPushLayout, + hasMeetingLayout, } = props; useEffect(() => { @@ -154,7 +156,7 @@ const PushLayoutEngine = (props) => { } }, 0); } - }, []); + }, [hasMeetingLayout]); useEffect(() => { const meetingLayoutDidChange = meetingLayout !== prevProps.meetingLayout; @@ -353,10 +355,6 @@ const PushLayoutEngineContainer = (props) => { const enforceLayout = validateEnforceLayout(currentUserData); const meetingPresentationIsOpen = !meetingPresentationMinimized; - if (!meetingLayout) { - return null; - } - return ( { selectedLayout, setMeetingLayout, setPushLayout, + hasMeetingLayout: !!meetingLayout, ...props, }} />