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)
},
startFetching() {
this.fetcher = () => promiseInterval(() => this.fetchChats(), 5000)
this.fetcher()
this.fetcher = promiseInterval(() => this.fetchChats(), 5000)
this.fetchChats()
},
stopFetching() {
this.fetcher?.stop()