aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-04-09 15:24:33 +0000
committerShpuld Shpludson <shp@cock.li>2019-04-09 15:24:33 +0000
commit1e9ddcb0da433b70c4146c49f3fbeba6bd44b660 (patch)
tree9fb57b416f7b20dcc1c6e09f0824d8d6c42e4ac9 /src/modules/users.js
parent546ced43d9edbaf176f71b010aadc11bf7e5e851 (diff)
parent1c04cd2036cb93e8a9f1729d26004719331e31dd (diff)
Merge branch 'fix/notification-bugs' into 'develop'
#474 Fix notification bugs Closes #474 See merge request pleroma/pleroma-fe!728
Diffstat (limited to 'src/modules/users.js')
-rw-r--r--src/modules/users.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/users.js b/src/modules/users.js
index 5839574b..becf66d2 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -353,7 +353,8 @@ const users = {
store.commit('setToken', false)
store.dispatch('stopFetching', 'friends')
store.commit('setBackendInteractor', backendInteractorService())
- store.dispatch('stopFetchingNotifications')
+ store.dispatch('stopFetching', 'notifications')
+ store.commit('clearNotifications')
store.commit('resetStatuses')
},
loginUser (store, accessToken) {
@@ -385,7 +386,10 @@ const users = {
}
// Start getting fresh posts.
- store.dispatch('startFetching', { timeline: 'friends' })
+ store.dispatch('startFetchingTimeline', { timeline: 'friends' })
+
+ // Start fetching notifications
+ store.dispatch('startFetchingNotifications')
// Get user mutes
store.dispatch('fetchMutes')