refac/fix: web/youtube file attachment handling

This commit is contained in:
Timothy Jaeryang Baek committed 2025-09-13 00:02:48 +04:00
1 parent 2227f24bd6
commit 210197fd43
2 files changed
+34 -20

No files matched your search

+3 -1
View File
@@ -1466,7 +1466,9 @@
const messages = createMessagesList(history, history.currentId);
const _files = JSON.parse(JSON.stringify(files));
chatFiles.push(..._files.filter((item) => ['doc', 'file', 'collection'].includes(item.type)));
chatFiles.push(
..._files.filter((item) => ['doc', 'text', 'file', 'collection'].includes(item.type))
);
chatFiles = chatFiles.filter(
// Remove duplicates
(item, index, array) =>