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(participants) do not preload gravatars if config is empty
Christoph Settgast1b200abaa7aa
diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.jsindex e787108d6b..d9e0bfc29e 100644--- a/react/features/base/participants/middleware.js+++ b/react/features/base/participants/middleware.js@@ -407,16 +407,20 @@ function _participantJoinedOrUpdated(store, next, action) {// to the new avatar and emit out change events if necessary.const result = next(action);- const { disableThirdPartyRequests } = getState()['features/base/config'];-- if (!disableThirdPartyRequests && (avatarURL || email || id || name)) {- const participantId = !id && local ? getLocalParticipant(getState()).id : id;- const updatedParticipant = getParticipantById(getState(), participantId);-- getFirstLoadableAvatarUrl(updatedParticipant, store)- .then(url => {- dispatch(setLoadableAvatarUrl(participantId, url));- });+ // Only run this if the config is populated, otherwise we preload external resources+ // even if disableThirdPartyRequests is set to true in config+ if (Object.keys(getState()['features/base/config']).length) {+ const { disableThirdPartyRequests } = getState()['features/base/config'];++ if (!disableThirdPartyRequests && (avatarURL || email || id || name)) {+ const participantId = !id && local ? getLocalParticipant(getState()).id : id;+ const updatedParticipant = getParticipantById(getState(), participantId);++ getFirstLoadableAvatarUrl(updatedParticipant, store)+ .then(url => {+ dispatch(setLoadableAvatarUrl(participantId, url));+ });+ }}// Notify external listeners of potential avatarURL changes.