Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(avatar): Remove unnecessary code.
Hristo Terezovd1cf5578fc5d
diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex 006fca20de..23f78a7188 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -292,17 +292,6 @@ UI.showToolbar = timeout => APP.store.dispatch(showToolbox(timeout));// Used by torture.UI.dockToolbar = dock => APP.store.dispatch(dockToolbox(dock));-/**- * Updates the displayed avatar for participant.- *- * @param {string} id - User id whose avatar should be updated.- * @param {string} avatarURL - The URL to avatar image to display.- * @returns {void}- */-UI.refreshAvatarDisplay = function(id) {- VideoLayout.changeUserAvatar(id);-};-/*** Notify user that connection failed.* @param {string} stropheErrorMsg raw Strophe error messagediff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex c41302b83e..d89702beac 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -139,12 +139,6 @@ const VideoLayout = {}},- changeUserAvatar(id, avatarUrl) {- if (this.isCurrentlyOnLarge(id)) {- largeVideo.updateAvatar(avatarUrl);- }- },-isLargeVideoVisible() {return this.isLargeContainerTypeVisible(VIDEO_CONTAINER_TYPE);},diff --git a/react/features/base/participants/middleware.ts b/react/features/base/participants/middleware.tsindex f2ea704347..fbc031813d 100644--- a/react/features/base/participants/middleware.ts+++ b/react/features/base/participants/middleware.ts@@ -641,7 +641,6 @@ function _participantJoinedOrUpdated(store: IStore, next: Function, action: any)// Send an external update of the local participant's raised hand state// if a new raised hand state is defined in the action.if (typeof raisedHandTimestamp !== 'undefined') {-if (local) {const { conference } = getState()['features/base/conference'];const rHand = parseInt(raisedHandTimestamp, 10);@@ -691,14 +690,6 @@ function _participantJoinedOrUpdated(store: IStore, next: Function, action: any)}}- // Notify external listeners of potential avatarURL changes.- if (typeof APP === 'object') {- const currentKnownId = local ? APP.conference.getMyUserId() : id;-- // Force update of local video getting a new id.- APP.UI.refreshAvatarDisplay(currentKnownId);- }-return result;}