Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(filmstrip-only): prevent stats display

Leonard Kimfafffb519b5e
diff --git a/react/features/base/popover/components/Popover.web.js b/react/features/base/popover/components/Popover.web.js
index d5253b2b1d..7435c31627 100644
--- a/react/features/base/popover/components/Popover.web.js
+++ b/react/features/base/popover/components/Popover.web.js
@@ -66,6 +66,11 @@ class Popover extends Component {
*/
content: PropTypes.object,
+ /**
+ * Whether displaying of the popover should be prevented.
+ */
+ disablePopover: PropTypes.bool,
+
/**
* An id attribute to apply to the root of the {@code Popover}
* component.
@@ -148,12 +153,13 @@ class Popover extends Component {
* @returns {void}
*/
_onShowDialog() {
- this.setState({ showDialog: true });
+ if (!this.props.disablePopover) {
+ this.setState({ showDialog: true });
- if (this.props.onPopoverOpen) {
- this.props.onPopoverOpen();
+ if (this.props.onPopoverOpen) {
+ this.props.onPopoverOpen();
+ }
}
-
}
/**
diff --git a/react/features/connection-indicator/components/ConnectionIndicator.js b/react/features/connection-indicator/components/ConnectionIndicator.js
index 8ac2602ff2..852f7101e2 100644
--- a/react/features/connection-indicator/components/ConnectionIndicator.js
+++ b/react/features/connection-indicator/components/ConnectionIndicator.js
@@ -222,6 +222,7 @@ class ConnectionIndicator extends Component {
<Popover
className = { rootClassNames }
content = { this._renderStatisticsTable() }
+ disablePopover = { !this.props.enableStatsDisplay }
position = { this.props.statsPopoverPosition }>
<div className = 'popover-trigger'>
<div