Sfoglia il codice sorgente

fix(avatar): Remove unnecessary code.

factor2
Hristo Terezov 2 anni fa
parent
commit
d1cf5578fc

+ 0
- 11
modules/UI/UI.js Vedi File

@@ -292,17 +292,6 @@ UI.showToolbar = timeout => APP.store.dispatch(showToolbox(timeout));
292 292
 // Used by torture.
293 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 296
  * Notify user that connection failed.
308 297
  * @param {string} stropheErrorMsg raw Strophe error message

+ 0
- 6
modules/UI/videolayout/VideoLayout.js Vedi File

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

+ 0
- 9
react/features/base/participants/middleware.ts Vedi File

@@ -641,7 +641,6 @@ function _participantJoinedOrUpdated(store: IStore, next: Function, action: any)
641 641
     // Send an external update of the local participant's raised hand state
642 642
     // if a new raised hand state is defined in the action.
643 643
     if (typeof raisedHandTimestamp !== 'undefined') {
644
-
645 644
         if (local) {
646 645
             const { conference } = getState()['features/base/conference'];
647 646
             const rHand = parseInt(raisedHandTimestamp, 10);
@@ -691,14 +690,6 @@ function _participantJoinedOrUpdated(store: IStore, next: Function, action: any)
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 693
     return result;
703 694
 }
704 695
 

Loading…
Annulla
Salva