diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-18 12:08:53 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-18 12:08:53 -0400 |
commit | 8fa7a4251a671ebe7056fe77df246e0f9e061a5b (patch) | |
tree | 4b508e0d7548c7fdb8bb72000eddbed323b0883f | |
parent | 532be141bae8ff2ea03de4fa54affd6e72dab9ea (diff) | |
download | chat-8fa7a4251a671ebe7056fe77df246e0f9e061a5b.tar.gz chat-8fa7a4251a671ebe7056fe77df246e0f9e061a5b.tar.bz2 chat-8fa7a4251a671ebe7056fe77df246e0f9e061a5b.zip |
Fix a bad merge that had edited posts being handled sloppily.
-rw-r--r-- | web/react/components/post_list.jsx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index c210853ac..bebd6847f 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -198,12 +198,6 @@ module.exports = React.createClass({ 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; if (!(msg.props.post_id in postList.posts)) { return; |