fix(config): cleanup config function (#12690)
* fix(config): avoid cleaning analytics config * fix cleanup function
This commit is contained in:
parent
c30d1e7479
commit
955367a157
|
@ -15,11 +15,18 @@ export * from './functions.any';
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
export function _cleanupConfig(config: IConfig) {
|
export function _cleanupConfig(config: IConfig) {
|
||||||
config.analytics = {};
|
config.analytics = config.analytics ?? {};
|
||||||
config.analytics.scriptURLs = [];
|
config.analytics.scriptURLs = [];
|
||||||
|
|
||||||
if (NativeModules.AppInfo.LIBRE_BUILD) {
|
if (NativeModules.AppInfo.LIBRE_BUILD) {
|
||||||
delete config.analytics?.amplitudeAPPKey;
|
delete config.analytics?.amplitudeAPPKey;
|
||||||
delete config.analytics?.googleAnalyticsTrackingId;
|
delete config.analytics?.googleAnalyticsTrackingId;
|
||||||
|
delete config.analytics?.rtcstatsEnabled;
|
||||||
|
delete config.analytics?.rtcstatsEndpoint;
|
||||||
|
delete config.analytics?.rtcstatsPollInterval;
|
||||||
|
delete config.analytics?.rtcstatsSendSdp;
|
||||||
|
delete config.analytics?.rtcstatsUseLegacy;
|
||||||
|
delete config.analytics?.obfuscateRoomName;
|
||||||
delete config.callStatsID;
|
delete config.callStatsID;
|
||||||
delete config.callStatsSecret;
|
delete config.callStatsSecret;
|
||||||
config.giphy = { enabled: false };
|
config.giphy = { enabled: false };
|
||||||
|
|
Loading…
Reference in New Issue