From ebe095bd769481cc114009e8193494d482f9ff4d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 15 Aug 2022 20:43:38 +0300 Subject: fix prod build again + fetch lists (and follow request) on login, stop fetching on logout, don't start fetching in components --- src/modules/users.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/users.js') diff --git a/src/modules/users.js b/src/modules/users.js index fe92d697..c13beb29 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -502,6 +502,7 @@ const users = { store.dispatch('stopFetchingTimeline', 'friends') store.commit('setBackendInteractor', backendInteractorService(store.getters.getToken())) store.dispatch('stopFetchingNotifications') + store.dispatch('stopFetchingLists') store.dispatch('stopFetchingFollowRequests') store.commit('clearNotifications') store.commit('resetStatuses') @@ -556,6 +557,12 @@ const users = { store.dispatch('startFetchingChats') } + store.dispatch('startFetchingLists') + + if (user.locked) { + store.dispatch('startFetchingFollowRequests') + } + if (store.getters.mergedConfig.useStreamingApi) { store.dispatch('fetchTimeline', 'friends', { since: null }) store.dispatch('fetchNotifications', { since: null }) -- cgit v1.2.3-70-g09d2