revert some stuff, turns out it's actually breaking. Fixed some local user things
This commit is contained in:
parent
4f3a220487
commit
690c1dcd7a
2 changed files with 34 additions and 31 deletions
|
@ -108,17 +108,11 @@ export const mutations = {
|
|||
state.currentUser.muteIds = muteIds
|
||||
},
|
||||
setUserForStatus (state, status) {
|
||||
// Not setting it again since it's already reactive if it has getters
|
||||
if (!Object.getOwnPropertyDescriptor(status.user, 'id').get) {
|
||||
status.user = state.usersObject[status.user.id]
|
||||
}
|
||||
status.user = state.usersObject[status.user.id]
|
||||
},
|
||||
setUserForNotification (state, notification) {
|
||||
// Not setting it again since it's already reactive if it has getters
|
||||
if (!Object.getOwnPropertyDescriptor(notification.action.user, 'id').get) {
|
||||
notification.action.user = state.usersObject[notification.action.user.id]
|
||||
notification.from_profile = state.usersObject[notification.action.user.id]
|
||||
}
|
||||
notification.action.user = state.usersObject[notification.action.user.id]
|
||||
notification.from_profile = state.usersObject[notification.action.user.id]
|
||||
},
|
||||
setColor (state, { user: { id }, highlighted }) {
|
||||
const user = state.usersObject[id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue