remove pinned timeline, instead, use simple entity of user object

This commit is contained in:
taehoon 2019-04-24 13:56:53 -04:00
parent 9e22d6212a
commit cd0a7afa06
8 changed files with 36 additions and 23 deletions

View file

@ -160,6 +160,9 @@ 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)