analytics: don't enable callstats when disableThirdPartyRequests is set

This commit is contained in:
Saúl Ibarra Corretgé 2020-03-28 20:24:02 +01:00 committed by Saúl Ibarra Corretgé
parent 1bbb937d9d
commit 4fd5dc0ee0
1 changed files with 7 additions and 0 deletions

View File

@ -1288,6 +1288,13 @@ export default {
options.confID = `${locationURL.host}${locationURL.pathname}`; options.confID = `${locationURL.host}${locationURL.pathname}`;
options.createVADProcessor = createRnnoiseProcessorPromise; options.createVADProcessor = createRnnoiseProcessorPromise;
// Disable CallStats, if requessted.
if (options.disableThirdPartyRequests) {
delete options.callStatsID;
delete options.callStatsSecret;
delete options.getWiFiStatsMethod;
}
return options; return options;
}, },