From 379e33f6a531fad17477c43e0112941343c737ef Mon Sep 17 00:00:00 2001
From: taehoon
Date: Thu, 21 Mar 2019 21:31:16 -0400
Subject: [PATCH] masto api sends muted property now
---
src/modules/users.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/modules/users.js b/src/modules/users.js
index 83c90ea5..ca4358ca 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -113,9 +113,7 @@ export const mutations = {
updateMutes (state, mutedUsers) {
// Reset muted of all fetched users
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))
+ each(mutedUsers, (user) => mergeOrAdd(state.users, state.usersObject, user))
},
saveMuteIds (state, muteIds) {
state.currentUser.muteIds = muteIds