Skip to content

Commit 5b4eb45

Browse files
committed
fix: add attachment icons for messages sent just now
1 parent 84a2fdc commit 5b4eb45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/chat/StreamingChatArea.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,11 @@ const StreamingChatArea: React.FC<StreamingChatAreaProps> = ({
302302

303303
setMessages((prev) => [
304304
...prev,
305-
{ ...userMessage, content: userMessageContentText },
305+
{
306+
...userMessage,
307+
content: userMessageContentText,
308+
attachments: userMessageAttachments,
309+
},
306310
]);
307311

308312
setTimeout(() => scrollToBottom(true), 100);

0 commit comments

Comments
 (0)