fix: clarify multi-document downloads

This commit is contained in:
TerryM
2026-06-05 18:45:32 +08:00
parent aae7faf9dd
commit 908f89ac24
2 changed files with 25 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import { VideoBubble } from "./bubbles/VideoBubble";
import { LinkPreviewCard } from "./LinkPreviewCard";
import { formatDateTime } from "./utils/formatTime";
import { FavoriteButton } from "../../favorites/FavoriteButton";
import { BubbleAttachmentDownloadButton } from "./BubbleAttachmentDownloadButton";
export type MessageBubbleVariant = "default" | "latest";
@@ -106,6 +107,12 @@ export function MessageBubble({
onFavoriteChange?.(post.id, favorited)
}
/>
{isFileBubble && post.attachments.length === 1 ? (
<BubbleAttachmentDownloadButton
postId={post.id}
attachment={post.attachments[0]}
/>
) : null}
</div>
</div>
) : null}