fix chats fetcher

This commit is contained in:
Henry Jameson 2026-08-26 17:43:48 +03:00
commit d9f03f61ae

View file

@ -40,8 +40,8 @@ export const useChatsStore = defineStore('chats', {
useStreamingStore().addSubscriber(socket) useStreamingStore().addSubscriber(socket)
}, },
startFetching() { startFetching() {
this.fetcher = () => promiseInterval(() => this.fetchChats(), 5000) this.fetcher = promiseInterval(() => this.fetchChats(), 5000)
this.fetcher() this.fetchChats()
}, },
stopFetching() { stopFetching() {
this.fetcher?.stop() this.fetcher?.stop()