Grab mutes from server on patched servers.

This commit is contained in:
Roger Braun 2017-02-20 18:01:45 +01:00
parent 3fd0d0d1cb
commit 9c1093b6ca
4 changed files with 45 additions and 3 deletions

View file

@ -82,6 +82,12 @@ const users = {
// Start getting fresh tweets.
store.dispatch('startFetching', 'friends')
// Get user mutes and follower info
store.rootState.api.backendInteractor.fetchMutes().then((mutedUsers) => {
each(mutedUsers, (user) => { user.muted = true })
store.commit('addNewUsers', mutedUsers)
})
// Fetch our friends
store.rootState.api.backendInteractor.fetchFriends()
.then((friends) => commit('addNewUsers', friends))