Skip to content

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

labels: don't disable all labels when VIDEO_QUALITY_LABEL_DISABLED is set

Saúl Ibarra Corretgé7de88995a5b9
diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.js
index 17bcca2749..df894c340b 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<Props, *> {
*/
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<Props, *> {
_layoutClassName,
_showPrejoin
} = this.props;
- const hideVideoQualityLabel
- = filmstripOnly
- || VIDEO_QUALITY_LABEL_DISABLED
- || _iAmRecorder;
+ const hideLabels = filmstripOnly || _iAmRecorder;
return (
<div
@@ -203,7 +198,7 @@ class Conference extends AbstractConference<Props, *> {
<InviteMore />
<div id = 'videospace'>
<LargeVideo />
- { hideVideoQualityLabel
+ { hideLabels
|| <Labels /> }
<Filmstrip filmstripOnly = { filmstripOnly } />
</div>
diff --git a/react/features/conference/components/web/Labels.js b/react/features/conference/components/web/Labels.js
index c080cd019d..b372d57ff0 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<Props, State> {
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<Props, State> {
this._renderTranscribingLabel()
}
{
- this.props._showVideoQualityLabel
+ this.props._showVideoQualityLabel && !VIDEO_QUALITY_LABEL_DISABLED
&& this._renderVideoQualityLabel()
}
{