From db523a951a1fe921392edb23b88194c63f651ce1 Mon Sep 17 00:00:00 2001 From: Konstantin Zarvanskiy Date: Fri, 19 Jan 2024 11:33:14 +0100 Subject: [PATCH] fix(participant) prevent gravatar request during loading of config --- react/features/base/participants/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/participants/middleware.ts b/react/features/base/participants/middleware.ts index d678fdd171ee..0a652c63691c 100644 --- a/react/features/base/participants/middleware.ts +++ b/react/features/base/participants/middleware.ts @@ -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)) {