diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.js index 17bcca274..df894c340 100644 --- a/react/features/conference/components/web/Conference.js +++ b/react/features/conference/components/web/Conference.js @@ -176,8 +176,6 @@ class Conference extends AbstractConference { */ render() { const { - VIDEO_QUALITY_LABEL_DISABLED, - // XXX The character casing of the name filmStripOnly utilized by // interfaceConfig is obsolete but legacy support is required. filmStripOnly: filmstripOnly @@ -187,10 +185,7 @@ class Conference extends AbstractConference { _layoutClassName, _showPrejoin } = this.props; - const hideVideoQualityLabel - = filmstripOnly - || VIDEO_QUALITY_LABEL_DISABLED - || _iAmRecorder; + const hideLabels = filmstripOnly || _iAmRecorder; return (
{
- { hideVideoQualityLabel + { hideLabels || }
diff --git a/react/features/conference/components/web/Labels.js b/react/features/conference/components/web/Labels.js index c080cd019..b372d57ff 100644 --- a/react/features/conference/components/web/Labels.js +++ b/react/features/conference/components/web/Labels.js @@ -9,6 +9,8 @@ import AbstractLabels, { type Props } from '../AbstractLabels'; +declare var interfaceConfig: Object; + /** * The type of the React {@code Component} state of {@link Labels}. */ @@ -67,6 +69,7 @@ class Labels extends AbstractLabels { render() { const { _filmstripVisible } = this.props; const { filmstripBecomingVisible } = this.state; + const { VIDEO_QUALITY_LABEL_DISABLED } = interfaceConfig; const className = `large-video-labels ${ filmstripBecomingVisible ? 'opening' : ''} ${ _filmstripVisible ? 'with-filmstrip' : 'without-filmstrip'}`; @@ -91,7 +94,7 @@ class Labels extends AbstractLabels { this._renderTranscribingLabel() } { - this.props._showVideoQualityLabel + this.props._showVideoQualityLabel && !VIDEO_QUALITY_LABEL_DISABLED && this._renderVideoQualityLabel() } {