From 648b22bb6d70ed3e9b067bbbea0508bdf3ba6b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 14 Dec 2021 09:02:22 -0600 Subject: [PATCH] fix: Use default remote display name in speaker stats when one is missing. --- .../speaker-stats/components/AbstractSpeakerStatsList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/react/features/speaker-stats/components/AbstractSpeakerStatsList.js b/react/features/speaker-stats/components/AbstractSpeakerStatsList.js index d3fbdda62..d33756496 100644 --- a/react/features/speaker-stats/components/AbstractSpeakerStatsList.js +++ b/react/features/speaker-stats/components/AbstractSpeakerStatsList.js @@ -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);