diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-07-07 19:27:13 -0400 |
---|---|---|
committer | Saturnino Abril <saturnino.abril@gmail.com> | 2017-07-08 07:27:13 +0800 |
commit | e8c02c7c1d1d94d362a37c14e2c1a77508906e94 (patch) | |
tree | b7992f3a265478c7bec1be4ed63b40d6fe691b7f /webapp/components | |
parent | 61adde51127bd85c16fec022f41be0ec0c5b5c3f (diff) | |
download | chat-e8c02c7c1d1d94d362a37c14e2c1a77508906e94.tar.gz chat-e8c02c7c1d1d94d362a37c14e2c1a77508906e94.tar.bz2 chat-e8c02c7c1d1d94d362a37c14e2c1a77508906e94.zip |
Only show unreads below indicator after first load is complete (#6874)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/post_view/post_list.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_list.jsx b/webapp/components/post_view/post_list.jsx index 13cc28da3..20d1ce0ff 100644 --- a/webapp/components/post_view/post_list.jsx +++ b/webapp/components/post_view/post_list.jsx @@ -152,7 +152,7 @@ export default class PostList extends React.PureComponent { return; } - if (!this.wasAtBottom() && this.props.posts !== nextProps.posts) { + if (!this.wasAtBottom() && this.props.posts !== nextProps.posts && this.hasScrolledToNewMessageSeparator) { const unViewedCount = nextProps.posts.reduce((count, post) => { if (post.create_at > this.state.lastViewed && post.user_id !== nextProps.currentUserId && |