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(mobile/conference): Move the initial call to the componentDidMount method
yanas616ab0f635e4
diff --git a/react/features/conference/components/Conference.native.js b/react/features/conference/components/Conference.native.jsindex c8ab1bf2da..499c747392 100644--- a/react/features/conference/components/Conference.native.js+++ b/react/features/conference/components/Conference.native.js@@ -70,6 +70,16 @@ class Conference extends Component {this._onClick = this._onClick.bind(this);}+ /**+ * Inits the toolbar timeout after the component is initially rendered.+ *+ * @inheritDoc+ * returns {void}+ */+ componentDidMount() {+ this._setToolbarTimeout(this.state.toolbarVisible);+ }+/*** Inits new connection and conference when conference screen is entered.*@@ -102,8 +112,6 @@ class Conference extends Component {render() {const toolbarVisible = this.state.toolbarVisible;- this._setToolbarTimeout(toolbarVisible);-return (<ContaineronClick = { this._onClick }@@ -203,9 +211,10 @@ class Conference extends Component {/*** Triggers the default toolbar timeout.*- * @param {boolean} toolbarVisible - indicates if the toolbar is currently+ * @param {boolean} toolbarVisible - Indicates if the toolbar is currently* visible* @private+ * @returns {void}*/_setToolbarTimeout(toolbarVisible) {this._clearToolbarTimeout();