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.
pull/11568/head
Jaya Allamsetty 3 years ago
parent 97ca3fb622
commit 43b0118ff8
  1. 9
      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,

Loading…
Cancel
Save