Fix notification bugs

This commit is contained in:
jasper 2019-04-03 09:04:46 -07:00
parent ac28e8c2f9
commit ea27483f27
4 changed files with 31 additions and 27 deletions

View file

@ -331,7 +331,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) {
@ -365,6 +366,9 @@ const users = {
// Start getting fresh posts.
store.dispatch('startFetching', { timeline: 'friends' })
// Start fetching notifications
store.dispatch('startFetching', { timeline: 'notifications' })
// Get user mutes
store.dispatch('fetchMutes')