refac
This commit is contained in:
1 parent
6167dc3564
commit
2e857a82d7
4 files changed
+20
No files matched your search
@@ -836,6 +836,9 @@
|
||||
await loadChat();
|
||||
return;
|
||||
}
|
||||
if (type === 'chat:list') {
|
||||
return;
|
||||
}
|
||||
let message = history.messages[event.message_id];
|
||||
|
||||
if (message) {
|
||||
|
||||
@@ -368,6 +368,9 @@
|
||||
console.log('Init chat list');
|
||||
const result = await refreshChatList(localStorage.token, { refreshPinned: true });
|
||||
if (result.accepted) {
|
||||
await Promise.all(
|
||||
Object.values(folderRegistry).map((folder: any) => folder?.setFolderItems?.())
|
||||
);
|
||||
allChatsLoaded = result.allLoaded;
|
||||
chatListReady = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user