Skip to content

Commit

Permalink
labels: don't disable all labels when VIDEO_QUALITY_LABEL_DISABLED is…
Browse files Browse the repository at this point in the history
… set

Fixes: jitsi#6880
  • Loading branch information
saghul committed May 28, 2020
1 parent f0c6e93 commit 7de8899
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 2 additions & 7 deletions react/features/conference/components/web/Conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -203,7 +198,7 @@ class Conference extends AbstractConference<Props, *> {
<InviteMore />
<div id = 'videospace'>
<LargeVideo />
{ hideVideoQualityLabel
{ hideLabels
|| <Labels /> }
<Filmstrip filmstripOnly = { filmstripOnly } />
</div>
Expand Down
5 changes: 4 additions & 1 deletion react/features/conference/components/web/Labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*/
Expand Down Expand Up @@ -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'}`;
Expand All @@ -91,7 +94,7 @@ class Labels extends AbstractLabels<Props, State> {
this._renderTranscribingLabel()
}
{
this.props._showVideoQualityLabel
this.props._showVideoQualityLabel && !VIDEO_QUALITY_LABEL_DISABLED
&& this._renderVideoQualityLabel()
}
{
Expand Down

0 comments on commit 7de8899

Please sign in to comment.