Fix incorrect store name
This commit is contained in:
parent
6f91286982
commit
b8f6e9f4ec
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue