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
ref(always-on-top): trigger toolbar hide timeout after update
Leonard Kim14adc0b887c2
diff --git a/react/features/always-on-top/AlwaysOnTop.js b/react/features/always-on-top/AlwaysOnTop.jsindex 7e66009fed..dffccbcf90 100644--- a/react/features/always-on-top/AlwaysOnTop.js+++ b/react/features/always-on-top/AlwaysOnTop.js@@ -205,6 +205,18 @@ export default class AlwaysOnTop extends Component<*, State> {this._hideToolbarAfterTimeout();}+ /**+ * Sets a timeout to hide the toolbar when the toolbar is shown.+ *+ * @inheritdoc+ * @returns {void}+ */+ componentDidUpdate(prevProps: *, prevState: State) {+ if (!prevState.visible && this.state.visible) {+ this._hideToolbarAfterTimeout();+ }+ }+/*** Removes all listeners.*@@ -223,18 +235,6 @@ export default class AlwaysOnTop extends Component<*, State> {window.removeEventListener('mousemove', this._mouseMove);}- /**- * Sets a timeout to hide the toolbar when the toolbar is shown.- *- * @inheritdoc- * @returns {void}- */- componentWillUpdate(nextProps: *, nextState: State) {- if (!this.state.visible && nextState.visible) {- this._hideToolbarAfterTimeout();- }- }-/*** Implements React's {@link Component#render()}.*