Skip to content

Commit

Permalink
Merge pull request bigbluebutton#21144 from ramonlsouza/i-21138
Browse files Browse the repository at this point in the history
fix: No layout selected in modal for users other than presenter
  • Loading branch information
antobinary authored Sep 11, 2024
2 parents 9d5cacc + 376a1bd commit 764d9c0
Showing 1 changed file with 4 additions and 1 deletion.
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 @@ -381,6 +383,7 @@ const PushLayoutEngineContainer = (props) => {
selectedLayout,
setMeetingLayout,
setPushLayout,
hasMeetingLayout: !!meetingLayout,
...props,
}}
/>
Expand Down

0 comments on commit 764d9c0

Please sign in to comment.