fix and update

This commit is contained in:
lendry
2026-06-29 12:17:25 +03:00
parent 923a028cdd
commit 75ccbe5fc4
39 changed files with 1619 additions and 63 deletions

View File

@@ -10,7 +10,7 @@ interface ChatImageLightboxProps {
open: boolean;
images: ChatMessage[];
index: number;
mediaUrls: Record<string, { blobUrl: string; fileName?: string } | undefined>;
mediaUrls: Record<string, { blobUrl?: string; fileName?: string } | undefined>;
onClose: () => void;
onIndexChange: (index: number) => void;
onDownload?: (message: ChatMessage) => void;

View File

@@ -6,7 +6,7 @@ import { cn } from '@/lib/utils';
interface ChatMediaAlbumGridProps {
messages: ChatMessage[];
mediaUrls: Record<string, { blobUrl: string } | undefined>;
mediaUrls: Record<string, { blobUrl?: string } | undefined>;
className?: string;
onImageClick?: (message: ChatMessage, index: number) => void;
}

View File

@@ -275,7 +275,7 @@ export function ChatMediaComposeDialog({
type="file"
className="hidden"
multiple
accept="image/*,video/*,audio/*,.pdf,.doc,.docx,.xls,.xlsx,.zip,.rar,.7z,.txt"
accept="*/*"
onChange={(event) => {
const files = Array.from(event.target.files ?? []);
if (files.length) onAddFiles(files);