Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn,display-name) don't show display name for local user

Saúl Ibarra Corretgé0826ec16c2c9
diff --git a/react/features/display-name/components/native/DisplayNameLabel.js b/react/features/display-name/components/native/DisplayNameLabel.js
index 017428402a..54bbd2309c 100644
--- a/react/features/display-name/components/native/DisplayNameLabel.js
+++ b/react/features/display-name/components/native/DisplayNameLabel.js
@@ -71,18 +71,10 @@ class DisplayNameLabel extends Component<Props> {
function _mapStateToProps(state: Object, ownProps: Props) {
const { participantId } = ownProps;
const participant = getParticipantById(state, participantId);
- const isFakeParticipant = participant && participant.isFakeParticipant;
-
- // Currently we only render the display name if it's not the local
- // participant and there is no video rendered for
- // them.
- const _render = Boolean(participantId)
- && !isFakeParticipant;
return {
- _participantName:
- getParticipantDisplayName(state, participantId),
- _render
+ _participantName: getParticipantDisplayName(state, participantId),
+ _render: participant && !participant?.local && !participant?.isFakeParticipant
};
}