Merge pull request #14780 from ramonlsouza/i-14689

fix: Screenshare is not displayed to new users, if autoSwapLayout=true
This commit is contained in:
Anton Georgiev 2022-04-11 13:48:20 -04:00 committed by GitHub
commit ee4af7730e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');