SDA-4414 - Remove sending initial analytic event (#2104)

This commit is contained in:
Kiran Niranjan 2024-02-27 11:30:06 +05:30 committed by GitHub
parent e859b50a31
commit 367f888633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,6 @@ let {
betaAutoUpdateChannelEnabled, betaAutoUpdateChannelEnabled,
latestAutoUpdateChannelEnabled, latestAutoUpdateChannelEnabled,
} = config.getConfigFields(menuItemConfigFields) as IConfig; } = config.getConfigFields(menuItemConfigFields) as IConfig;
let initialAnalyticsSent = false;
const CORP_URL = 'https://corporate.symphony.com'; const CORP_URL = 'https://corporate.symphony.com';
const SDA_CHANNELS_MENU_ID = 'sda-channels'; const SDA_CHANNELS_MENU_ID = 'sda-channels';
const C2_CHANNELS_MENU_ID = 'c2-channels'; const C2_CHANNELS_MENU_ID = 'c2-channels';
@ -148,42 +147,6 @@ export class AppMenu {
'enableRendererLogs', 'enableRendererLogs',
]).enableRendererLogs; ]).enableRendererLogs;
this.buildMenu(); this.buildMenu();
// send initial analytic
if (!initialAnalyticsSent) {
this.sendAnalytics(
AnalyticsElements.MENU,
MenuActionTypes.MINIMIZE_ON_CLOSE,
minimizeOnClose === CloudConfigDataTypes.ENABLED,
);
this.sendAnalytics(
AnalyticsElements.MENU,
MenuActionTypes.AUTO_LAUNCH_ON_START_UP,
launchOnStartup === CloudConfigDataTypes.ENABLED,
);
this.sendAnalytics(
AnalyticsElements.MENU,
MenuActionTypes.ALWAYS_ON_TOP,
isAlwaysOnTop === CloudConfigDataTypes.ENABLED,
);
this.sendAnalytics(
AnalyticsElements.MENU,
MenuActionTypes.FLASH_NOTIFICATION_IN_TASK_BAR,
bringToFront === CloudConfigDataTypes.ENABLED,
);
this.sendAnalytics(
AnalyticsElements.MENU,
MenuActionTypes.REFRESH_APP_IN_IDLE,
memoryRefresh === CloudConfigDataTypes.ENABLED,
);
this.sendAnalytics(
AnalyticsElements.MENU,
MenuActionTypes.HAMBURGER_MENU,
isMac || isLinux
? false
: isCustomTitleBar === CloudConfigDataTypes.ENABLED,
);
}
initialAnalyticsSent = true;
} }
/** /**