fix(video-quality): Get rid of the video qaulity warning for p2p
It is now possible to change the sender video quality for p2p calls as well
This commit is contained in:
committed by
Jaya Allamsetty
parent
4faeb84d2e
commit
3f679407a9
@@ -139,7 +139,7 @@ class VideoQualitySlider extends Component<Props> {
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
const { _audioOnly, _p2p, _videoSupported, t } = this.props;
|
||||
const { _videoSupported, t } = this.props;
|
||||
const activeSliderOption = this._mapCurrentQualityToSliderValue();
|
||||
|
||||
let classNames = 'video-quality-dialog';
|
||||
@@ -148,8 +148,6 @@ class VideoQualitySlider extends Component<Props> {
|
||||
if (!_videoSupported) {
|
||||
classNames += ' video-not-supported';
|
||||
warning = this._renderAudioOnlyLockedMessage();
|
||||
} else if (_p2p && !_audioOnly) {
|
||||
warning = this._renderP2PMessage();
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -205,24 +203,6 @@ class VideoQualitySlider extends Component<Props> {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates React Elements for notifying that peer to peer is enabled.
|
||||
*
|
||||
* @private
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
_renderP2PMessage() {
|
||||
const { t } = this.props;
|
||||
|
||||
return (
|
||||
<InlineMessage
|
||||
secondaryText = { t('videoStatus.recHighDefinitionOnly') }
|
||||
title = { t('videoStatus.p2pEnabled') }>
|
||||
{ t('videoStatus.p2pVideoQualityDescription') }
|
||||
</InlineMessage>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates React Elements to display mock tick marks with associated labels.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user