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 Baek
2025-08-06 20:55:58 +04:00
co-authored by G30
parent d1a654019b
commit 041da26756
3 changed files with 171 additions and 34 deletions
+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();