Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Fixes syncing state about lobby in security dialog.
damenchob9c20a3fd46f
diff --git a/react/features/lobby/components/web/LobbySection.js b/react/features/lobby/components/web/LobbySection.jsindex d1d1fe0b99..64a66359ee 100644--- a/react/features/lobby/components/web/LobbySection.js+++ b/react/features/lobby/components/web/LobbySection.js@@ -59,18 +59,19 @@ class LobbySection extends PureComponent<Props, State> {}/**- * Implements {@code PureComponent#componentDidUpdate}.+ * Implements React's {@link Component#getDerivedStateFromProps()}.** @inheritdoc*/- componentDidUpdate(prevProps, prevState) {- if (this.props._lobbyEnabled !== prevProps._lobbyEnabled- && this.state.lobbyEnabled !== prevState.lobbyEnabled) {- // eslint-disable-next-line react/no-did-update-set-state- this.setState({- lobbyEnabled: this.props._lobbyEnabled- });+ static getDerivedStateFromProps(props: Props, state: Object) {+ if (props._lobbyEnabled !== state.lobbyEnabled) {++ return {+ lobbyEnabled: props._lobbyEnabled+ };}++ return null;}/**