|
@@ -71,18 +71,10 @@ class DisplayNameLabel extends Component<Props> {
|
71
|
71
|
function _mapStateToProps(state: Object, ownProps: Props) {
|
72
|
72
|
const { participantId } = ownProps;
|
73
|
73
|
const participant = getParticipantById(state, participantId);
|
74
|
|
- const isFakeParticipant = participant && participant.isFakeParticipant;
|
75
|
|
-
|
76
|
|
- // Currently we only render the display name if it's not the local
|
77
|
|
- // participant and there is no video rendered for
|
78
|
|
- // them.
|
79
|
|
- const _render = Boolean(participantId)
|
80
|
|
- && !isFakeParticipant;
|
81
|
74
|
|
82
|
75
|
return {
|
83
|
|
- _participantName:
|
84
|
|
- getParticipantDisplayName(state, participantId),
|
85
|
|
- _render
|
|
76
|
+ _participantName: getParticipantDisplayName(state, participantId),
|
|
77
|
+ _render: participant && !participant?.local && !participant?.isFakeParticipant
|
86
|
78
|
};
|
87
|
79
|
}
|
88
|
80
|
|