From 462b05e612ded3fb17b3f2c1bbae6b5fa968c4e5 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 15 Oct 2025 10:35:36 +0700 Subject: [PATCH] chore: fix conflict revert analytic --- web-app/src/containers/ChatInput.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx index 0647bb0a8..744ff5bab 100644 --- a/web-app/src/containers/ChatInput.tsx +++ b/web-app/src/containers/ChatInput.tsx @@ -48,7 +48,7 @@ import { open } from '@tauri-apps/plugin-dialog' import { toast } from 'sonner' import { PlatformFeatures } from '@/lib/platform/const' import { PlatformFeature } from '@/lib/platform/types' -import posthog from 'posthog-js' + import { Attachment, createImageAttachment, @@ -226,18 +226,6 @@ const ChatInput = ({ setMessage('') - // Track message send event with PostHog (only if product analytics is enabled) - if (productAnalytic && selectedModel && selectedProvider) { - try { - posthog.capture('message_sent', { - model_provider: selectedProvider, - model_id: selectedModel.id, - }) - } catch (error) { - console.debug('Failed to track message send event:', error) - } - } - // Callback to update attachment processing state const updateAttachmentProcessing = ( fileName: string,