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

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

View file

@ -16,7 +16,7 @@
import Messages from '../chat/Messages.svelte';
import { goto } from '$app/navigation';
import PencilSquare from '../icons/PencilSquare.svelte';
import Note from '../icons/Note.svelte';
import PageEdit from '../icons/PageEdit.svelte';
dayjs.extend(calendar);
export let show = false;
@ -237,7 +237,7 @@
show = false;
onClose();
},
icon: Note
icon: PageEdit
}
]
: [])