From 1bbb937d9d172ff9ad0834b2b76baf08fa7b614a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sat, 28 Mar 2020 20:23:28 +0100 Subject: [PATCH] analytics: fix enabling analytics when disableThirdPartyRequests is set --- react/features/base/lib-jitsi-meet/functions.any.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/lib-jitsi-meet/functions.any.js b/react/features/base/lib-jitsi-meet/functions.any.js index ab60d215b..ff11530cb 100644 --- a/react/features/base/lib-jitsi-meet/functions.any.js +++ b/react/features/base/lib-jitsi-meet/functions.any.js @@ -39,7 +39,7 @@ export function createLocalTrack(type: string, deviceId: string) { export function isAnalyticsEnabled(stateful: Function | Object) { const { disableThirdPartyRequests, analytics = {} } = toState(stateful)['features/base/config']; - return !disableThirdPartyRequests && !analytics.disabled; + return !(disableThirdPartyRequests || analytics.disabled); } /**