Fixing username display in center channel

Этот коммит содержится в:
Christopher Speller
2016-03-31 10:54:40 -04:00
родитель c8b2af6246
Коммит 54a064de98
5 изменённых файлов: 38 добавлений и 54 удалений

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

@@ -8,7 +8,6 @@ import ChannelStore from 'stores/channel_store.jsx';
import PostStore from 'stores/post_store.jsx';
import UserStore from 'stores/user_store.jsx';
import * as Utils from 'utils/utils.jsx';
import * as GlobalActions from 'action_creators/global_actions.jsx';
import Constants from 'utils/constants.jsx';
@@ -158,17 +157,6 @@ export default class PostsViewContainer extends React.Component {
this.setState({scrollType: PostsView.SCROLL_TYPE_FREE});
}
}
shouldComponentUpdate(nextProps, nextState) {
if (!Utils.areObjectsEqual(this.state, nextState)) {
return true;
}
if (!Utils.areObjectsEqual(this.props, nextProps)) {
return true;
}
return false;
}
render() {
const postLists = this.state.postLists;
const channels = this.state.channels;