fix: Use default remote display name in speaker stats when one is missing.

This commit is contained in:
Дамян Минков 2021-12-14 09:02:22 -06:00
parent 715b22bfb5
commit 648b22bb6d
1 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,8 @@ const abstractSpeakerStatsList = (speakerStatsItem: Function): Function[] => {
const conference = useSelector(state => state['features/base/conference'].conference); const conference = useSelector(state => state['features/base/conference'].conference);
const speakerStats = useSelector(state => state['features/speaker-stats'].stats); const speakerStats = useSelector(state => state['features/speaker-stats'].stats);
const localParticipant = useSelector(getLocalParticipant); const localParticipant = useSelector(getLocalParticipant);
const { enableFacialRecognition } = useSelector(state => state['features/base/config']) || {}; const { defaultRemoteDisplayName, enableFacialRecognition } = useSelector(
state => state['features/base/config']) || {};
const { facialExpressions: localFacialExpressions } = useSelector( const { facialExpressions: localFacialExpressions } = useSelector(
state => state['features/facial-recognition']) || {}; state => state['features/facial-recognition']) || {};
@ -92,7 +93,7 @@ const abstractSpeakerStatsList = (speakerStatsItem: Function): Function[] => {
props.facialExpressions = statsModel.getFacialExpressions(); props.facialExpressions = statsModel.getFacialExpressions();
} }
props.showFacialExpressions = enableFacialRecognition; props.showFacialExpressions = enableFacialRecognition;
props.displayName = statsModel.getDisplayName(); props.displayName = statsModel.getDisplayName() || defaultRemoteDisplayName;
props.t = t; props.t = t;
return speakerStatsItem(props); return speakerStatsItem(props);