logout woes

This commit is contained in:
Henry Jameson 2026-08-28 20:16:16 +03:00
commit 282ec82bf1
3 changed files with 102 additions and 12 deletions

View file

@ -81,13 +81,15 @@ export const useNotificationsStore = defineStore('notifications', {
pause() {
this.paused = true
if (this.fetcher && this.fetching) {
this.stopFetching('Notifications paused')
console.debug('[Notifications] Pausing notifications')
this.fetcher.stopFetching()
}
},
resume() {
this.paused = false
if (this.fetcher && this.fetching) {
this.startFetching('Notifications resumed')
console.debug('[Notifications] Resuming notifications')
this.fetcher.startFetching()
}
},
activate() {

View file

@ -718,6 +718,8 @@ export const useUsersStore = defineStore('users', {
useAnnouncementsStore().stopFetching()
useListsStore().stopFetching()
useBookmarkFoldersStore().stopFetching()
useChatsStore().stopFetching()
store?.dispatch('stopFetchingFollowRequests')
// NOTE: No need to verify the app still exists, because if it doesn't,
@ -743,7 +745,6 @@ export const useUsersStore = defineStore('users', {
// Full reset on logout success
useTimelinesStore().deactivateAll()
useStatusesStore().resetStatuses()
useChatsStore().stopFetching()
useChatsStore().resetChats()
this.users = new Map()