refac: note & chat sticky attachment

This commit is contained in:
Timothy Jaeryang Baek
2025-09-25 13:21:47 -05:00
parent eeed0df743
commit 776d4773a9
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1494,7 +1494,9 @@
const _files = JSON.parse(JSON.stringify(files));
chatFiles.push(
..._files.filter((item) => ['doc', 'text', 'file', 'collection'].includes(item.type))
..._files.filter((item) =>
['doc', 'text', 'file', 'note', 'chat', 'collection'].includes(item.type)
)
);
chatFiles = chatFiles.filter(
// Remove duplicates