aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-08-15 20:43:38 +0300
committerHenry Jameson <me@hjkos.com>2022-08-15 20:44:21 +0300
commitebe095bd769481cc114009e8193494d482f9ff4d (patch)
treecd4347d676588816ad15b7a44d2a0c3df69ca729 /src/modules/users.js
parent50924aab5c4a5fccde3bcf653f4d9192385e9fc9 (diff)
fix prod build again + fetch lists (and follow request) on login,
stop fetching on logout, don't start fetching in components
Diffstat (limited to 'src/modules/users.js')
-rw-r--r--src/modules/users.js7
1 files changed, 7 insertions, 0 deletions
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 })