feat: chat item shift shorcut

This commit is contained in:
Timothy J. Baek
2024-06-14 13:02:07 -07:00
parent aba2ca39d4
commit 7ba98ad498
3 changed files with 119 additions and 48 deletions

View File

@@ -111,7 +111,8 @@
$: if (chatIdProp) {
(async () => {
if (await loadChat()) {
console.log(chatIdProp);
if (chatIdProp && (await loadChat())) {
await tick();
loaded = true;
@@ -126,7 +127,11 @@
onMount(async () => {
if (!$chatId) {
await initNewChat();
chatId.subscribe(async (value) => {
if (!value) {
await initNewChat();
}
});
} else {
if (!($settings.saveChatHistory ?? true)) {
await goto('/');