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:
co-authored by
G30
parent
d1a654019b
commit
041da26756
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user