aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-03-09 01:19:56 +0200
committerHenry Jameson <me@hjkos.com>2019-03-09 01:19:56 +0200
commit690c1dcd7ac09f3e6cd4ba5778dce5bd360ee68e (patch)
tree3691092cd900da632bb85184fbab502002150c3e /src/modules/users.js
parent4f3a220487c3c8b3596e5a8de7b65cc7c4f0c981 (diff)
revert some stuff, turns out it's actually breaking. Fixed some local user things
Diffstat (limited to 'src/modules/users.js')
-rw-r--r--src/modules/users.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/modules/users.js b/src/modules/users.js
index 4e17ebf2..e4146c31 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -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]