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(() => {