filter pinned statuses based on pinned entity instead of a separate user entity

This commit is contained in:
taehoon 2019-04-24 14:34:55 -04:00
parent cd0a7afa06
commit e8abe1273b
4 changed files with 8 additions and 13 deletions

View file

@ -160,9 +160,6 @@ export const mutations = {
saveMuteIds (state, muteIds) {
state.currentUser.muteIds = muteIds
},
savePinnedStatusIds (state, { userId, statusIds }) {
state.usersObject[userId].pinnedStatusIds = statusIds
},
addMuteId (state, muteId) {
if (state.currentUser.muteIds.indexOf(muteId) === -1) {
state.currentUser.muteIds.push(muteId)