diff --git a/apps/web/src/components/chat/MessageAttachments.tsx b/apps/web/src/components/chat/MessageAttachments.tsx index 7c6a2f4e90..d8d492e19d 100644 --- a/apps/web/src/components/chat/MessageAttachments.tsx +++ b/apps/web/src/components/chat/MessageAttachments.tsx @@ -1,5 +1,5 @@ import { DownloadIcon, FileIcon, FileTextIcon } from "lucide-react"; -import { memo } from "react"; +import { memo, useState } from "react"; import { cn } from "~/lib/utils"; import type { ChatAttachment } from "../../types"; @@ -91,10 +91,27 @@ export const MessageAttachments = memo(function MessageAttachments({ onImageExpand: (preview: ExpandedImagePreview) => void; className?: string; }) { + // Signed asset URLs expire after an hour, and a thread left open past + // that renders dead /