From 4e1d6f704dd3ea4541bc1603a3acfd66908ca4c4 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 26 Aug 2026 18:24:22 +0300 Subject: [PATCH] even more login/logout woes! --- src/stores/chats.js | 2 -- src/stores/timelines.js | 8 ++++++++ src/stores/users.js | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/stores/chats.js b/src/stores/chats.js index b30c1c42c..b0373b0e5 100644 --- a/src/stores/chats.js +++ b/src/stores/chats.js @@ -56,8 +56,6 @@ export const useChatsStore = defineStore('chats', { }, resetChats() { this.data = new Map() - this.stopFetching() - this.startFetching() }, addNewChats(result) { useUsersStore().addNewUsers({ diff --git a/src/stores/timelines.js b/src/stores/timelines.js index 562bec21d..834c29f50 100644 --- a/src/stores/timelines.js +++ b/src/stores/timelines.js @@ -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( diff --git a/src/stores/users.js b/src/stores/users.js index f41f75aa2..412fbfb33 100644 --- a/src/stores/users.js +++ b/src/stores/users.js @@ -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(() => {