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

Fixes: https://github.com/jitsi/jitsi-meet/issues/6880
This commit is contained in:
Saúl Ibarra Corretgé 2020-05-28 09:38:29 +02:00 committed by Saúl Ibarra Corretgé
parent f0c6e934ce
commit 7de88995a5
2 changed files with 6 additions and 8 deletions

View File

@ -176,8 +176,6 @@ class Conference extends AbstractConference<Props, *> {
*/ */
render() { render() {
const { const {
VIDEO_QUALITY_LABEL_DISABLED,
// XXX The character casing of the name filmStripOnly utilized by // XXX The character casing of the name filmStripOnly utilized by
// interfaceConfig is obsolete but legacy support is required. // interfaceConfig is obsolete but legacy support is required.
filmStripOnly: filmstripOnly filmStripOnly: filmstripOnly
@ -187,10 +185,7 @@ class Conference extends AbstractConference<Props, *> {
_layoutClassName, _layoutClassName,
_showPrejoin _showPrejoin
} = this.props; } = this.props;
const hideVideoQualityLabel const hideLabels = filmstripOnly || _iAmRecorder;
= filmstripOnly
|| VIDEO_QUALITY_LABEL_DISABLED
|| _iAmRecorder;
return ( return (
<div <div
@ -203,7 +198,7 @@ class Conference extends AbstractConference<Props, *> {
<InviteMore /> <InviteMore />
<div id = 'videospace'> <div id = 'videospace'>
<LargeVideo /> <LargeVideo />
{ hideVideoQualityLabel { hideLabels
|| <Labels /> } || <Labels /> }
<Filmstrip filmstripOnly = { filmstripOnly } /> <Filmstrip filmstripOnly = { filmstripOnly } />
</div> </div>

View File

@ -9,6 +9,8 @@ import AbstractLabels, {
type Props type Props
} from '../AbstractLabels'; } from '../AbstractLabels';
declare var interfaceConfig: Object;
/** /**
* The type of the React {@code Component} state of {@link Labels}. * The type of the React {@code Component} state of {@link Labels}.
*/ */
@ -67,6 +69,7 @@ class Labels extends AbstractLabels<Props, State> {
render() { render() {
const { _filmstripVisible } = this.props; const { _filmstripVisible } = this.props;
const { filmstripBecomingVisible } = this.state; const { filmstripBecomingVisible } = this.state;
const { VIDEO_QUALITY_LABEL_DISABLED } = interfaceConfig;
const className = `large-video-labels ${ const className = `large-video-labels ${
filmstripBecomingVisible ? 'opening' : ''} ${ filmstripBecomingVisible ? 'opening' : ''} ${
_filmstripVisible ? 'with-filmstrip' : 'without-filmstrip'}`; _filmstripVisible ? 'with-filmstrip' : 'without-filmstrip'}`;
@ -91,7 +94,7 @@ class Labels extends AbstractLabels<Props, State> {
this._renderTranscribingLabel() this._renderTranscribingLabel()
} }
{ {
this.props._showVideoQualityLabel this.props._showVideoQualityLabel && !VIDEO_QUALITY_LABEL_DISABLED
&& this._renderVideoQualityLabel() && this._renderVideoQualityLabel()
} }
{ {