diff --git a/web/src/components/chat/ChatMessage.tsx b/web/src/components/chat/ChatMessage.tsx index b21fae4355..385693f538 100644 --- a/web/src/components/chat/ChatMessage.tsx +++ b/web/src/components/chat/ChatMessage.tsx @@ -15,6 +15,8 @@ import { TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; +import { ChatAttachmentChip } from "@/components/chat/ChatAttachmentChip"; +import { parseAttachedEvent } from "@/utils/chatUtil"; type MessageBubbleProps = { role: "user" | "assistant"; @@ -126,6 +128,10 @@ export function MessageBubble({ ); } + const { eventId: attachedEventId, body: displayContent } = isUser + ? parseAttachedEvent(content) + : { eventId: null, body: content }; + return (
{isUser ? ( - content +
+ {attachedEventId && ( + + )} +
{displayContent}
+
) : ( <>