Merge pull request #395 from mattermost/merge-fix

Fix a bad merge that had edited posts being handled sloppily.
Этот коммит содержится в:
Joram Wilander
2015-08-18 12:09:42 -04:00
родитель 78c4bff0c1 8fa7a4251a
Коммит 44464f8f3c

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

@@ -196,12 +196,6 @@ module.exports = React.createClass({
if (msg.action === 'posted') {
post = JSON.parse(msg.props.post);
PostStore.storePost(post);
} else if (msg.action === 'post_edited') {
if (this.state.channel.id === msg.channel_id) {
this.setState({postList: postList});
}
PostStore.storePosts(post.channel_id, postList);
} else if (msg.action === 'post_edited') {
if (this.state.channel.id === msg.channel_id) {
postList = this.state.postList;