refac
This commit is contained in:
@@ -3470,6 +3470,7 @@
|
||||
|
||||
const initChatHandler = async (history) => {
|
||||
let _chatId = $chatId;
|
||||
const selectedFolderId = $selectedFolder?.id;
|
||||
|
||||
if (!$temporaryChatEnabled) {
|
||||
chat = await createNewChat(
|
||||
@@ -3502,6 +3503,10 @@
|
||||
await refreshChatList(localStorage.token);
|
||||
}
|
||||
|
||||
if (selectedFolderId) {
|
||||
await refreshFolderChatLists(selectedFolderId, chat);
|
||||
}
|
||||
|
||||
selectedFolder.set(null);
|
||||
} else {
|
||||
_chatId = createTemporaryChatId($socket?.id);
|
||||
|
||||
Reference in New Issue
Block a user