Skip to content

Commit

Permalink
fix(participant) prevent gravatar request during loading of config
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Zarvanskiy committed Jan 19, 2024
1 parent e00b6be commit db523a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/features/base/participants/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function _participantJoinedOrUpdated(store: IStore, next: Function, action: AnyA

// 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) {
if (!!getState()['features/base/config'])?.hosts) {
const { disableThirdPartyRequests } = getState()['features/base/config'];

if (!disableThirdPartyRequests && (avatarURL || email || id || name)) {
Expand Down

0 comments on commit db523a9

Please sign in to comment.