fix(rn,display-name) fix displaying for virtual SS
This commit is contained in:
parent
0f84b0b9fe
commit
4857664f15
|
@ -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))
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue