even more login/logout woes!

This commit is contained in:
Henry Jameson 2026-08-26 18:24:22 +03:00
commit 4e1d6f704d
3 changed files with 10 additions and 2 deletions

View file

@ -56,8 +56,6 @@ export const useChatsStore = defineStore('chats', {
},
resetChats() {
this.data = new Map()
this.stopFetching()
this.startFetching()
},
addNewChats(result) {
useUsersStore().addNewUsers({

View file

@ -316,6 +316,14 @@ export const useTimelinesStore = defineStore('timelines', {
reason,
)
return
} else if (timeline.paused) {
console.debug(
'[Timelines] Deactivating paused timeline',
timelineName,
'Reason:',
reason,
)
timeline.fetching = false
} else {
timeline.fetcher.stopFetching()
console.debug(

View file

@ -746,6 +746,7 @@ export const useUsersStore = defineStore('users', {
// Full reset on logout success
useTimelinesStore().deactivateAll()
useStatusesStore().resetStatuses()
useChatsStore().stopFetching()
useChatsStore().resetChats()
this.users = new Map()
@ -777,6 +778,7 @@ export const useUsersStore = defineStore('users', {
useAnnouncementsStore().startFetching()
useListsStore().startFetching()
useBookmarkFoldersStore().startFetching()
useChatsStore().startFetching()
store?.dispatch('startFetchingFollowRequests')
})
.finally(() => {