Merge pull request #14743 from ramonlsouza/initial-presentation-size-bugfix

fix: presentation does not appear if user joins shortly after meeting start
This commit is contained in:
Anton Georgiev 2022-04-05 15:16:36 -04:00 committed by GitHub
commit 770da5b0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,6 +158,8 @@ class Presentation extends PureComponent {
intl,
} = this.props;
const { presentationWidth, presentationHeight } = this.state;
const {
numCameras: prevNumCameras,
presentationBounds: prevPresentationBounds,
@ -235,7 +237,8 @@ class Presentation extends PureComponent {
}
}
if (presentationBounds !== prevPresentationBounds) this.onResize();
if ((presentationBounds !== prevPresentationBounds) ||
(!presentationWidth && !presentationHeight)) this.onResize();
}
}