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.
This commit is contained in:
Jaya Allamsetty 2022-05-19 13:31:51 -04:00
parent 97ca3fb622
commit 43b0118ff8
1 changed files with 1 additions and 8 deletions

View File

@ -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,