From 2f9b28a57d1ec0fba85c5537a3116418b8c073c9 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 16 Jun 2026 21:08:02 -0400 Subject: [PATCH] fix(ui): run initChatList API calls concurrently in Promise.all (#25838) --- src/lib/components/layout/Sidebar.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index ea8ef65f12..449eb5d144 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -324,17 +324,17 @@ initFolders(); initSharedFolders(); await Promise.all([ - await (async () => { + (async () => { console.log('Init tags'); const _tags = await getAllTags(localStorage.token); tags.set(_tags); })(), - await (async () => { + (async () => { console.log('Init pinned chats'); const _pinnedChats = await getPinnedChatList(localStorage.token); pinnedChats.set(_pinnedChats); })(), - await (async () => { + (async () => { if ( $config?.features?.enable_notes && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true)) @@ -344,7 +344,7 @@ pinnedNotes.set(_pinnedNotes); } })(), - await (async () => { + (async () => { console.log('Init chat list'); const _chats = await getChatList(localStorage.token, $currentChatPage); await chats.set(_chats);