From 367f88863310cbadd5ff93425a674da7beaaed2f Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Tue, 27 Feb 2024 11:30:06 +0530 Subject: [PATCH] SDA-4414 - Remove sending initial analytic event (#2104) --- src/app/app-menu.ts | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/app/app-menu.ts b/src/app/app-menu.ts index cd5335ca..9052221b 100644 --- a/src/app/app-menu.ts +++ b/src/app/app-menu.ts @@ -104,7 +104,6 @@ let { betaAutoUpdateChannelEnabled, latestAutoUpdateChannelEnabled, } = config.getConfigFields(menuItemConfigFields) as IConfig; -let initialAnalyticsSent = false; const CORP_URL = 'https://corporate.symphony.com'; const SDA_CHANNELS_MENU_ID = 'sda-channels'; const C2_CHANNELS_MENU_ID = 'c2-channels'; @@ -148,42 +147,6 @@ export class AppMenu { 'enableRendererLogs', ]).enableRendererLogs; 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; } /**