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) fix displaying for virtual SS

Saúl Ibarra Corretgé4857664f15ca
diff --git a/react/features/display-name/components/native/DisplayNameLabel.tsx b/react/features/display-name/components/native/DisplayNameLabel.tsx
index 963623305f..5d7488b223 100644
--- a/react/features/display-name/components/native/DisplayNameLabel.tsx
+++ b/react/features/display-name/components/native/DisplayNameLabel.tsx
@@ -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))
};
}