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() {
|
resetChats() {
|
||||||
this.data = new Map()
|
this.data = new Map()
|
||||||
this.stopFetching()
|
|
||||||
this.startFetching()
|
|
||||||
},
|
},
|
||||||
addNewChats(result) {
|
addNewChats(result) {
|
||||||
useUsersStore().addNewUsers({
|
useUsersStore().addNewUsers({
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue