refac/fix: web/youtube file attachment handling

This commit is contained in:
Timothy Jaeryang Baek
2025-09-13 00:02:48 +04:00
parent 2227f24bd6
commit 210197fd43
2 changed files with 34 additions and 20 deletions
+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) =>