From 43b0118ff8d82a3fcbefa295e6f2cf0c0089cf68 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty <54324652+jallamsetty1@users.noreply.github.com> Date: Thu, 19 May 2022 13:31:51 -0400 Subject: [PATCH] fix(mutli-stream): Use the default display name if none is available. This fixes an issue where the virual SS tile is not created if the user sharing the screen doesn't have a display name set. --- react/features/base/participants/actions.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/react/features/base/participants/actions.js b/react/features/base/participants/actions.js index b40b954d1..67bf3f702 100644 --- a/react/features/base/participants/actions.js +++ b/react/features/base/participants/actions.js @@ -515,14 +515,7 @@ export function createVirtualScreenshareParticipant(sourceName, local) { return (dispatch, getState) => { const state = getState(); const ownerId = getVirtualScreenshareParticipantOwnerId(sourceName); - const owner = getParticipantById(state, ownerId); - const ownerName = owner.name; - - if (!ownerName) { - logger.error(`Failed to create a screenshare participant for sourceName: ${sourceName}`); - - return; - } + const ownerName = getParticipantDisplayName(state, ownerId); dispatch(participantJoined({ conference: state['features/base/conference'].conference,