forked from AkkomaGang/akkoma-fe
masto api sends muted property now
This commit is contained in:
parent
883a84b313
commit
379e33f6a5
1 changed files with 1 additions and 3 deletions
|
@ -113,9 +113,7 @@ export const mutations = {
|
||||||
updateMutes (state, mutedUsers) {
|
updateMutes (state, mutedUsers) {
|
||||||
// Reset muted of all fetched users
|
// Reset muted of all fetched users
|
||||||
each(state.users, (user) => { user.muted = false })
|
each(state.users, (user) => { user.muted = false })
|
||||||
// TODO: Remove this line once we get muted property of user object from the api
|
each(mutedUsers, (user) => mergeOrAdd(state.users, state.usersObject, user))
|
||||||
const newUsers = map(mutedUsers, (user) => ({ ...user, muted: true }))
|
|
||||||
each(newUsers, (user) => mergeOrAdd(state.users, state.usersObject, user))
|
|
||||||
},
|
},
|
||||||
saveMuteIds (state, muteIds) {
|
saveMuteIds (state, muteIds) {
|
||||||
state.currentUser.muteIds = muteIds
|
state.currentUser.muteIds = muteIds
|
||||||
|
|
Loading…
Reference in a new issue