diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-02-22 11:09:35 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-02-22 11:10:31 -0500 |
commit | c16071afc5320677bc2c13fa4dff941152e18970 (patch) | |
tree | 4eb5cd6efa2ad7ea60a2070bb6a10066f32fa3cf /web/react/components/channel_header.jsx | |
parent | 9b30fad8ad4d9d83fd119ed9e4bfb591ebca46e2 (diff) | |
download | chat-c16071afc5320677bc2c13fa4dff941152e18970.tar.gz chat-c16071afc5320677bc2c13fa4dff941152e18970.tar.bz2 chat-c16071afc5320677bc2c13fa4dff941152e18970.zip |
Move post_body profile change listener into posts view
Diffstat (limited to 'web/react/components/channel_header.jsx')
-rw-r--r-- | web/react/components/channel_header.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index 3d0246a96..79f4b1c05 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -147,8 +147,8 @@ export default class ChannelHeader extends React.Component { </Popover> ); let channelTitle = channel.display_name; - const currentId = this.prop.user.id; - const isAdmin = Utils.isAdmin(this.state.memberChannel.roles) || Utils.isAdmin(this.state.memberTeam.roles); + const currentId = this.props.user.id; + const isAdmin = Utils.isAdmin(this.state.memberChannel.roles) || Utils.isAdmin(this.props.user.roles); const isDirect = (this.state.channel.type === 'D'); if (isDirect) { |