Skip to content

Commit

Permalink
fix hide presentation on join
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonlsouza committed Sep 11, 2024
1 parent 1ef0bb5 commit 376a1bd
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const propTypes = {
shouldShowExternalVideo: PropTypes.bool,
enforceLayout: PropTypes.string,
setLocalSettings: PropTypes.func.isRequired,
hasMeetingLayout: PropTypes.bool,
};

const PushLayoutEngine = (props) => {
Expand Down Expand Up @@ -88,6 +89,7 @@ const PushLayoutEngine = (props) => {
selectedLayout,
setMeetingLayout,
setPushLayout,
hasMeetingLayout,
} = props;

useEffect(() => {
Expand Down Expand Up @@ -154,7 +156,7 @@ const PushLayoutEngine = (props) => {
}
}, 0);
}
}, []);
}, [hasMeetingLayout]);

useEffect(() => {
const meetingLayoutDidChange = meetingLayout !== prevProps.meetingLayout;
Expand Down Expand Up @@ -353,10 +355,6 @@ const PushLayoutEngineContainer = (props) => {
const enforceLayout = validateEnforceLayout(currentUserData);
const meetingPresentationIsOpen = !meetingPresentationMinimized;

if (!meetingLayout) {
return null;
}

return (
<PushLayoutEngine
{...{
Expand Down Expand Up @@ -385,6 +383,7 @@ const PushLayoutEngineContainer = (props) => {
selectedLayout,
setMeetingLayout,
setPushLayout,
hasMeetingLayout: !!meetingLayout,
...props,
}}
/>
Expand Down

0 comments on commit 376a1bd

Please sign in to comment.