Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

analytics: don't enable callstats when disableThirdPartyRequests is set

Saúl Ibarra Corretgé4fd5dc0ee0ea
diff --git a/conference.js b/conference.js
index e006eaf7ef..c45c7d0d63 100644
--- a/conference.js
+++ b/conference.js
@@ -1288,6 +1288,13 @@ export default {
options.confID = `${locationURL.host}${locationURL.pathname}`;
options.createVADProcessor = createRnnoiseProcessorPromise;
+ // Disable CallStats, if requessted.
+ if (options.disableThirdPartyRequests) {
+ delete options.callStatsID;
+ delete options.callStatsSecret;
+ delete options.getWiFiStatsMethod;
+ }
+
return options;
},