fix join screenshare

This commit is contained in:
Ramon Souza 2022-04-08 11:45:17 -03:00
parent 72f1b66e6e
commit def29e3388

View File

@ -155,6 +155,8 @@ class App extends Component {
isRTL,
hidePresentation,
autoSwapLayout,
shouldShowScreenshare,
shouldShowExternalVideo,
} = this.props;
const { browserName } = browserInfo;
const { osName } = deviceInfo;
@ -166,9 +168,12 @@ class App extends Component {
value: isRTL,
});
const presentationOpen = !(autoSwapLayout || hidePresentation)
|| shouldShowExternalVideo || shouldShowScreenshare;
layoutContextDispatch({
type: ACTIONS.SET_PRESENTATION_IS_OPEN,
value: !(autoSwapLayout || hidePresentation),
value: presentationOpen,
});
Modal.setAppElement('#app');