fix: chat accepts quotes now
This commit is contained in:
@@ -17,6 +17,7 @@ import { FileText } from "lucide-react";
|
||||
import { LinkPreviewCard } from "@/components/chat/link-preview-card";
|
||||
import { MediaGrid } from "@/components/chat/media-grid";
|
||||
import { MediaLightbox } from "@/components/chat/media-lightbox";
|
||||
import { QuoteCard } from "@/components/chat/quote-card";
|
||||
import { attachmentUrl, type Attachment } from "@/lib/chat";
|
||||
|
||||
function humanSize(bytes?: number | null): string {
|
||||
@@ -57,6 +58,9 @@ export function MessageAttachments({
|
||||
|
||||
{rest.map((a) => {
|
||||
switch (a.kind) {
|
||||
case "quote":
|
||||
return <QuoteCard key={a.id} attachment={a} />;
|
||||
|
||||
case "link":
|
||||
return (
|
||||
<LinkPreviewCard
|
||||
|
||||
Reference in New Issue
Block a user