소스 검색

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

In large view. This aligns the behavior with the web.
master
Saúl Ibarra Corretgé 3 년 전
부모
커밋
0826ec16c2
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 10개의 파일을 삭제
  1. 2
    10
      react/features/display-name/components/native/DisplayNameLabel.js

+ 2
- 10
react/features/display-name/components/native/DisplayNameLabel.js 파일 보기

@@ -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
 

Loading…
취소
저장