diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-07 09:55:57 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-07 09:55:57 -0500 |
commit | 8f917a2925d9e99c5dc7710c3df7b0d5d755a0df (patch) | |
tree | f07ba611e07a010eeb730c356d45a17884e0a0ee /web/react/components/channel_members_modal.jsx | |
parent | 6217b06ca23ea3a5ef553fdaa0103b69600d9947 (diff) | |
download | chat-8f917a2925d9e99c5dc7710c3df7b0d5d755a0df.tar.gz chat-8f917a2925d9e99c5dc7710c3df7b0d5d755a0df.tar.bz2 chat-8f917a2925d9e99c5dc7710c3df7b0d5d755a0df.zip |
Changed Channel Members modal to list full user objects with all fields populated
Diffstat (limited to 'web/react/components/channel_members_modal.jsx')
-rw-r--r-- | web/react/components/channel_members_modal.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/channel_members_modal.jsx b/web/react/components/channel_members_modal.jsx index d67ebf7d4..3ec93a616 100644 --- a/web/react/components/channel_members_modal.jsx +++ b/web/react/components/channel_members_modal.jsx @@ -44,6 +44,7 @@ export default class ChannelMembersModal extends React.Component { } getStateFromStores() { const extraInfo = ChannelStore.getCurrentExtraInfo(); + const profiles = UserStore.getActiveOnlyProfiles(); if (extraInfo.member_count !== extraInfo.members.length) { AsyncClient.getChannelExtraInfo(this.props.channel.id, -1); @@ -53,9 +54,8 @@ export default class ChannelMembersModal extends React.Component { }; } - // clone the member list since we mutate it later on const memberList = extraInfo.members.map((member) => { - return Object.assign({}, member); + return profiles[member.id]; }); function compareByUsername(a, b) { |