refac
This commit is contained in:
@@ -80,7 +80,10 @@
|
||||
let allChatsLoaded = false;
|
||||
|
||||
let showCreateFolderModal = false;
|
||||
|
||||
let folders = {};
|
||||
let folderRegistry = {};
|
||||
|
||||
let newFolderId = null;
|
||||
|
||||
const initFolders = async () => {
|
||||
@@ -922,6 +925,7 @@
|
||||
}}
|
||||
>
|
||||
<Folders
|
||||
bind:folderRegistry
|
||||
{folders}
|
||||
{shiftKey}
|
||||
onDelete={(folderId) => {
|
||||
@@ -981,6 +985,8 @@
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
||||
folderRegistry[chat.folder_id]?.setFolderItems();
|
||||
}
|
||||
|
||||
if (chat.pinned) {
|
||||
|
||||
Reference in New Issue
Block a user