fix and update
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user