logout woes
This commit is contained in:
parent
8ca71beef0
commit
282ec82bf1
3 changed files with 102 additions and 12 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue