Add todo comment

This commit is contained in:
taehoon 2019-03-02 06:47:05 -05:00
parent 333afd2138
commit 300259fd97
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ export const mutations = {
},
updateMutes (state, mutedUsers) {
each(state.users, (user) => { user.muted = false })
// TODO: Remove this line once we get muted property of user object from the api
const newUsers = map(mutedUsers, (user) => ({ ...user, muted: true }))
each(newUsers, (user) => mergeOrAdd(state.users, state.usersObject, user))
},