ref(participants) use enum type to store fake participants (#12316)

This commit is contained in:
Mihaela Dumitru
2022-10-06 14:12:57 +03:00
committed by GitHub
parent be7f2643df
commit d0c22806ec
41 changed files with 294 additions and 193 deletions

View File

@@ -72,7 +72,7 @@ function _mapStateToProps(state: IState, ownProps: Partial<Props>) {
return {
_participantName: getParticipantDisplayName(state, ownProps.participantId ?? ''),
_render: participant && (!participant?.local || ownProps.contained) && !participant?.isFakeParticipant
_render: participant && (!participant?.local || ownProps.contained) && !participant?.fakeParticipant
};
}

View File

@@ -8,7 +8,11 @@ import { makeStyles } from 'tss-react/mui';
import { IState } from '../../../app/types';
// @ts-ignore
import { isDisplayNameVisible } from '../../../base/config/functions.any';
import { getLocalParticipant, getParticipantDisplayName } from '../../../base/participants/functions';
import {
getLocalParticipant,
getParticipantDisplayName,
isWhiteboardParticipant
} from '../../../base/participants/functions';
import { Participant } from '../../../base/participants/types';
import { withPixelLineHeight } from '../../../base/styles/functions.web';
// @ts-ignore
@@ -64,7 +68,7 @@ const StageParticipantNameLabel = () => {
&& nameToDisplay
&& selectedId !== localId
&& !isTileView
&& !largeVideoParticipant?.isWhiteboard
&& !isWhiteboardParticipant(largeVideoParticipant)
) {
return (
<div