fix(rn,display-name) fix displaying for virtual SS

This commit is contained in:
Saúl Ibarra Corretgé 2022-10-07 14:30:57 +02:00 committed by Saúl Ibarra Corretgé
parent 0f84b0b9fe
commit 4857664f15
1 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,8 @@ import { Text, View } from 'react-native';
import { IState } from '../../../app/types';
import {
getParticipantById,
getParticipantDisplayName
getParticipantDisplayName,
isScreenShareParticipant
} from '../../../base/participants/functions';
import { connect } from '../../../base/redux/functions';
@ -72,7 +73,8 @@ function _mapStateToProps(state: IState, ownProps: Partial<Props>) {
return {
_participantName: getParticipantDisplayName(state, ownProps.participantId ?? ''),
_render: participant && (!participant?.local || ownProps.contained) && !participant?.fakeParticipant
_render: participant && (!participant?.local || ownProps.contained)
&& (!participant?.fakeParticipant || isScreenShareParticipant(participant))
};
}