mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 06:00:42 -05:00
refac
This commit is contained in:
1 parent
7cd0785033
commit
3d31123467
1 file changed
+7
-1
@@ -1810,7 +1810,13 @@
|
||||
syncChatRoom($socket, $chatId, $temporaryChatEnabled);
|
||||
const id = $chatId;
|
||||
const tasks = await getTaskIdsByChatId(localStorage.token, id).catch(() => null);
|
||||
if ($chatId === id && tasks) taskIds = tasks.task_ids?.length ? tasks.task_ids : null;
|
||||
if ($chatId !== id || !tasks) return;
|
||||
taskIds = tasks.task_ids?.length ? tasks.task_ids : null;
|
||||
if (!taskIds && hasPendingAssistantLeaf()) {
|
||||
// A server restart can leave unfinished messages without a completion event.
|
||||
const loaded = await loadChat();
|
||||
if (loaded && $chatId === id) await processNextInQueue(id);
|
||||
}
|
||||
};
|
||||
|
||||
onMount(() => {
|
||||
|
||||
Reference in new issue
Block a user