diff options
author | nickago <ngonella@calpoly.edu> | 2015-08-11 10:40:40 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-08-12 09:28:54 -0700 |
commit | f614249dd3446cd7bdfc05cba606614509afab49 (patch) | |
tree | 5823d9b543ea04966851268825159fd6dfbe37dc /web/react/components/post_list.jsx | |
parent | 6028d013d60f3252a3226f891322997c56a4d8cc (diff) | |
download | chat-f614249dd3446cd7bdfc05cba606614509afab49.tar.gz chat-f614249dd3446cd7bdfc05cba606614509afab49.tar.bz2 chat-f614249dd3446cd7bdfc05cba606614509afab49.zip |
Removed personal debugging code and notes
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r-- | web/react/components/post_list.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 8de43697c..d09c2e537 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -167,11 +167,12 @@ module.exports = React.createClass({ post_list.order.unshift(post.id); } - this.holdPosition = false; - if (this.state.channel.id === msg.channel_id) { + this.holdPosition = false; this.setState({ post_list: post_list }); - }; + } else { + this.holdPosition = true; + } PostStore.storePosts(post.channel_id, post_list); } else if (msg.action == "post_edited") { @@ -246,7 +247,6 @@ module.exports = React.createClass({ Constants.POST_CHUNK_SIZE, function(data) { $(self.refs.loadmore.getDOMNode()).text("Load more messages"); - console.log("here") if (!data) return; |