fix: Use default remote display name in speaker stats when one is missing.
This commit is contained in:
parent
715b22bfb5
commit
648b22bb6d
|
@ -22,7 +22,8 @@ const abstractSpeakerStatsList = (speakerStatsItem: Function): Function[] => {
|
|||
const conference = useSelector(state => state['features/base/conference'].conference);
|
||||
const speakerStats = useSelector(state => state['features/speaker-stats'].stats);
|
||||
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(
|
||||
state => state['features/facial-recognition']) || {};
|
||||
|
||||
|
@ -92,7 +93,7 @@ const abstractSpeakerStatsList = (speakerStatsItem: Function): Function[] => {
|
|||
props.facialExpressions = statsModel.getFacialExpressions();
|
||||
}
|
||||
props.showFacialExpressions = enableFacialRecognition;
|
||||
props.displayName = statsModel.getDisplayName();
|
||||
props.displayName = statsModel.getDisplayName() || defaultRemoteDisplayName;
|
||||
props.t = t;
|
||||
|
||||
return speakerStatsItem(props);
|
||||
|
|
Loading…
Reference in New Issue