feat: add pinned, shared and archived tags functionality for chat search moda

Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang BaekandG30 committed 2025-08-06 20:55:58 +04:00
1 parent d1a654019b
commit 041da26756
3 files changed
+171 -34

No files matched your search

+6 -1
View File
@@ -42,7 +42,7 @@
}
const loadChatPreview = async (selectedIdx) => {
if (!chatList || chatList.length === 0) {
if (!chatList || chatList.length === 0 || chatList[selectedIdx] === undefined) {
selectedChat = null;
messages = null;
history = null;
@@ -139,6 +139,11 @@
};
const onKeyDown = (e) => {
const searchOptions = document.getElementById('search-options-container');
if (searchOptions) {
return;
}
if (e.code === 'Escape') {
show = false;
onClose();