chore: fix conflict revert analytic

This commit is contained in:
Faisal Amir 2025-10-15 10:35:36 +07:00
parent 946b347f44
commit 462b05e612

View File

@ -48,7 +48,7 @@ import { open } from '@tauri-apps/plugin-dialog'
import { toast } from 'sonner' import { toast } from 'sonner'
import { PlatformFeatures } from '@/lib/platform/const' import { PlatformFeatures } from '@/lib/platform/const'
import { PlatformFeature } from '@/lib/platform/types' import { PlatformFeature } from '@/lib/platform/types'
import posthog from 'posthog-js'
import { import {
Attachment, Attachment,
createImageAttachment, createImageAttachment,
@ -226,18 +226,6 @@ const ChatInput = ({
setMessage('') 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 // Callback to update attachment processing state
const updateAttachmentProcessing = ( const updateAttachmentProcessing = (
fileName: string, fileName: string,