From b6988ab2cc95a12810b7b9bdc9927e17899718fe Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 8 Oct 2026 16:57:51 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 698af005db..d68db45538 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1484,7 +1484,9 @@ } else if (type === 'chat:message:voice') { message.meta = { ...message.meta, voice: data.voice }; } else if (type === 'chat:message:files' || type === 'files') { - message.files = data.files; + message.files = isTemporaryChatId(event.chat_id) + ? [...(message.files ?? []), ...data.files] + : data.files; } else if (type === 'chat:message:tasks') { chatTasks = data.tasks; } else if (type === 'chat:message:embeds' || type === 'embeds') {