Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
06a64219
Commit
06a64219
authored
Aug 01, 2024
by
Aryan Kothari
Browse files
fix: bool eval order
parent
2c4bc7a2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+4
-4
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+1
-1
src/lib/components/chat/Tags.svelte
src/lib/components/chat/Tags.svelte
+2
-2
src/lib/components/layout/Sidebar/ChatItem.svelte
src/lib/components/layout/Sidebar/ChatItem.svelte
+3
-3
No files found.
src/lib/components/chat/Chat.svelte
View file @
06a64219
...
...
@@ -421,7 +421,7 @@
files: chatFiles
});
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
}
}
...
...
@@ -469,7 +469,7 @@
files: chatFiles
});
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
}
}
...
...
@@ -631,7 +631,7 @@
timestamp: Date.now()
});
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
await chatId.set(chat.id);
} else {
...
...
@@ -708,7 +708,7 @@
})
);
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
await chats.set(await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit));
return _responses;
};
...
...
src/lib/components/chat/Messages.svelte
View file @
06a64219
...
...
@@ -90,7 +90,7 @@
history: history
});
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
await chats.set(await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit));
};
const confirmEditResponseMessage = async (messageId, content) => {
...
...
src/lib/components/chat/Tags.svelte
View file @
06a64219
...
...
@@ -59,7 +59,7 @@
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
} else {
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
}
...
...
@@ -68,7 +68,7 @@
}
} else {
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
}
...
...
src/lib/components/layout/Sidebar/ChatItem.svelte
View file @
06a64219
...
...
@@ -49,7 +49,7 @@
title: _title
});
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
}
...
...
@@ -64,7 +64,7 @@
if (res) {
goto(`/c/${res.id}`);
await chats.set(
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit)
);
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
}
...
...
@@ -72,7 +72,7 @@
const archiveChatHandler = async (id) => {
await archiveChatById(localStorage.token, id);
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
await chats.set(await getChatList(localStorage.token, 0,
(
$pageSkip * $pageLimit
)
|| $pageLimit));
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment