浏览代码

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.
master
Jaya Allamsetty 3 年前
父节点
当前提交
43b0118ff8
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1
    8
      react/features/base/participants/actions.js

+ 1
- 8
react/features/base/participants/actions.js 查看文件

@@ -515,14 +515,7 @@ export function createVirtualScreenshareParticipant(sourceName, local) {
515 515
     return (dispatch, getState) => {
516 516
         const state = getState();
517 517
         const ownerId = getVirtualScreenshareParticipantOwnerId(sourceName);
518
-        const owner = getParticipantById(state, ownerId);
519
-        const ownerName = owner.name;
520
-
521
-        if (!ownerName) {
522
-            logger.error(`Failed to create a screenshare participant for sourceName: ${sourceName}`);
523
-
524
-            return;
525
-        }
518
+        const ownerName = getParticipantDisplayName(state, ownerId);
526 519
 
527 520
         dispatch(participantJoined({
528 521
             conference: state['features/base/conference'].conference,

正在加载...
取消
保存