Merge pull request #18396 from ramonlsouza/issue-18386

fix: bbb_hide_presentation_on_join parameter not working
This commit is contained in:
Ramón Souza 2023-07-28 13:49:03 -03:00 committed by GitHub
commit f389d7b338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ const AppContainer = (props) => {
meetingLayoutCameraPosition, meetingLayoutCameraPosition,
meetingLayoutFocusedCamera, meetingLayoutFocusedCamera,
meetingLayoutVideoRate, meetingLayoutVideoRate,
isSharedNotesPinned,
...otherProps ...otherProps
} = props; } = props;
@ -97,6 +98,7 @@ const AppContainer = (props) => {
layoutContextDispatch layoutContextDispatch
&& (typeof meetingLayout !== 'undefined') && (typeof meetingLayout !== 'undefined')
&& (layoutType.current !== meetingLayout) && (layoutType.current !== meetingLayout)
&& isSharedNotesPinned
) { ) {
layoutType.current = meetingLayout; layoutType.current = meetingLayout;
MediaService.setPresentationIsOpen(layoutContextDispatch, true); MediaService.setPresentationIsOpen(layoutContextDispatch, true);
@ -322,5 +324,6 @@ export default withTracker(() => {
hidePresentationOnJoin: getFromUserSettings('bbb_hide_presentation_on_join', LAYOUT_CONFIG.hidePresentationOnJoin), hidePresentationOnJoin: getFromUserSettings('bbb_hide_presentation_on_join', LAYOUT_CONFIG.hidePresentationOnJoin),
hideActionsBar: getFromUserSettings('bbb_hide_actions_bar', false), hideActionsBar: getFromUserSettings('bbb_hide_actions_bar', false),
ignorePollNotifications: Session.get('ignorePollNotifications'), ignorePollNotifications: Session.get('ignorePollNotifications'),
isSharedNotesPinned: MediaService.shouldShowSharedNotes(),
}; };
})(AppContainer); })(AppContainer);