Fix incorrect store name

This commit is contained in:
Webifi 2023-06-25 19:48:49 -05:00
parent 6f91286982
commit b8f6e9f4ec
1 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@
export let currentChatMessages = writable([] as Message[]) export let currentChatMessages = writable([] as Message[])
export let started = writable(false) export let started = writable(false)
export let currentChatId = writable(0) export let currentChatId = writable(0)
export let lastChatId = persisted('currentChatId', 0) export let lastChatId = persisted('lastChatId', 0)
const chatDefaults = getChatDefaults() const chatDefaults = getChatDefaults()
@ -235,6 +235,7 @@
currentChatId.set(0) currentChatId.set(0)
lastChatId.set(0) lastChatId.set(0)
currentChatMessages.set([]) currentChatMessages.set([])
return
} }
setChatTimer = setTimeout(() => { setChatTimer = setTimeout(() => {
currentChatId.set(chatId) currentChatId.set(chatId)