瀏覽代碼

fix(avatar): Remove unnecessary code.

factor2
Hristo Terezov 2 年之前
父節點
當前提交
d1cf5578fc
共有 3 個文件被更改,包括 0 次插入26 次删除
  1. 0
    11
      modules/UI/UI.js
  2. 0
    6
      modules/UI/videolayout/VideoLayout.js
  3. 0
    9
      react/features/base/participants/middleware.ts

+ 0
- 11
modules/UI/UI.js 查看文件

292
 // Used by torture.
292
 // Used by torture.
293
 UI.dockToolbar = dock => APP.store.dispatch(dockToolbox(dock));
293
 UI.dockToolbar = dock => APP.store.dispatch(dockToolbox(dock));
294
 
294
 
295
-/**
296
- * Updates the displayed avatar for participant.
297
- *
298
- * @param {string} id - User id whose avatar should be updated.
299
- * @param {string} avatarURL - The URL to avatar image to display.
300
- * @returns {void}
301
- */
302
-UI.refreshAvatarDisplay = function(id) {
303
-    VideoLayout.changeUserAvatar(id);
304
-};
305
-
306
 /**
295
 /**
307
  * Notify user that connection failed.
296
  * Notify user that connection failed.
308
  * @param {string} stropheErrorMsg raw Strophe error message
297
  * @param {string} stropheErrorMsg raw Strophe error message

+ 0
- 6
modules/UI/videolayout/VideoLayout.js 查看文件

139
         }
139
         }
140
     },
140
     },
141
 
141
 
142
-    changeUserAvatar(id, avatarUrl) {
143
-        if (this.isCurrentlyOnLarge(id)) {
144
-            largeVideo.updateAvatar(avatarUrl);
145
-        }
146
-    },
147
-
148
     isLargeVideoVisible() {
142
     isLargeVideoVisible() {
149
         return this.isLargeContainerTypeVisible(VIDEO_CONTAINER_TYPE);
143
         return this.isLargeContainerTypeVisible(VIDEO_CONTAINER_TYPE);
150
     },
144
     },

+ 0
- 9
react/features/base/participants/middleware.ts 查看文件

641
     // Send an external update of the local participant's raised hand state
641
     // Send an external update of the local participant's raised hand state
642
     // if a new raised hand state is defined in the action.
642
     // if a new raised hand state is defined in the action.
643
     if (typeof raisedHandTimestamp !== 'undefined') {
643
     if (typeof raisedHandTimestamp !== 'undefined') {
644
-
645
         if (local) {
644
         if (local) {
646
             const { conference } = getState()['features/base/conference'];
645
             const { conference } = getState()['features/base/conference'];
647
             const rHand = parseInt(raisedHandTimestamp, 10);
646
             const rHand = parseInt(raisedHandTimestamp, 10);
691
         }
690
         }
692
     }
691
     }
693
 
692
 
694
-    // Notify external listeners of potential avatarURL changes.
695
-    if (typeof APP === 'object') {
696
-        const currentKnownId = local ? APP.conference.getMyUserId() : id;
697
-
698
-        // Force update of local video getting a new id.
699
-        APP.UI.refreshAvatarDisplay(currentKnownId);
700
-    }
701
-
702
     return result;
693
     return result;
703
 }
694
 }
704
 
695
 

Loading…
取消
儲存