Move post_body profile change listener into posts view

Этот коммит содержится в:
JoramWilander
2016-02-22 11:09:35 -05:00
родитель 9b30fad8ad
Коммит c16071afc5
4 изменённых файлов: 28 добавлений и 21 удалений

Просмотреть файл

@@ -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) {