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

@ -238,6 +238,11 @@
const toggleSaveChatHistory = async () => {
saveChatHistory = !saveChatHistory;
console.log(saveChatHistory);
if (saveChatHistory === false) {
await goto('/');
}
saveSettings({ saveChatHistory: saveChatHistory });
};