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() { resetChats() {
this.data = new Map() this.data = new Map()
this.stopFetching()
this.startFetching()
}, },
addNewChats(result) { addNewChats(result) {
useUsersStore().addNewUsers({ useUsersStore().addNewUsers({

View file

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

View file

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