This commit is contained in:
Henry Jameson 2026-09-04 00:51:13 +03:00
commit eaa75f55e6

View file

@ -717,6 +717,7 @@ export const useUsersStore = defineStore('users', {
},
logout() {
const oauth = useOAuthStore()
const locked = this.currentUser.locked
// Pause fetching
useNotificationsStore().pause()
@ -727,7 +728,7 @@ export const useUsersStore = defineStore('users', {
useListsStore().stopFetching()
useBookmarkFoldersStore().stopFetching()
useChatsStore().stopFetching()
if (this.currentUser.locked) {
if (locked) {
useFollowRequestsStore().stopFetching()
}
@ -788,7 +789,7 @@ export const useUsersStore = defineStore('users', {
useListsStore().startFetching()
useBookmarkFoldersStore().startFetching()
useChatsStore().startFetching()
if (this.currentUser.locked) {
if (locked) {
useFollowRequestsStore().startFetching()
}
})