feat: chat history incognito mode

This commit is contained in:
Timothy J. Baek 2024-01-06 02:33:00 -08:00
parent 77a4c4ce3e
commit 13d9e6675e
4 changed files with 332 additions and 262 deletions

View file

@ -609,6 +609,12 @@
chat = await updateChatById(localStorage.token, _chatId, { title: _title });
await chats.set(await getChatList(localStorage.token));
};
onMount(async () => {
if (!($settings.saveChatHistory ?? true)) {
await goto('/');
}
});
</script>
<svelte:window