even more login/logout woes!
This commit is contained in:
parent
a44b60dbc8
commit
4e1d6f704d
3 changed files with 10 additions and 2 deletions
|
|
@ -56,8 +56,6 @@ export const useChatsStore = defineStore('chats', {
|
|||
},
|
||||
resetChats() {
|
||||
this.data = new Map()
|
||||
this.stopFetching()
|
||||
this.startFetching()
|
||||
},
|
||||
addNewChats(result) {
|
||||
useUsersStore().addNewUsers({
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue