fix(connection-stats) Do not display max enabled resolution on SS tile.

This commit is contained in:
Jaya Allamsetty 2022-11-10 15:55:08 -05:00
parent 99955df5c8
commit b00a17c1c3
1 changed files with 2 additions and 2 deletions

View File

@ -637,7 +637,7 @@ class ConnectionStatsTable extends Component<IProps> {
* @returns {ReactElement}
*/
_renderResolution() {
const { resolution, maxEnabledResolution, t, videoSsrc } = this.props;
const { isVirtualScreenshareParticipant, maxEnabledResolution, resolution, t, videoSsrc } = this.props;
let resolutionString = 'N/A';
if (resolution && videoSsrc) {
@ -646,7 +646,7 @@ class ConnectionStatsTable extends Component<IProps> {
if (width && height) {
resolutionString = `${width}x${height}`;
if (maxEnabledResolution && maxEnabledResolution < 720) {
if (maxEnabledResolution && maxEnabledResolution < 720 && !isVirtualScreenshareParticipant) {
const maxEnabledResolutionTitle = t('connectionindicator.maxEnabledResolution');
resolutionString += ` (${maxEnabledResolutionTitle} ${maxEnabledResolution}p)`;