summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-07 19:27:13 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2017-07-08 07:27:13 +0800
commite8c02c7c1d1d94d362a37c14e2c1a77508906e94 (patch)
treeb7992f3a265478c7bec1be4ed63b40d6fe691b7f /webapp
parent61adde51127bd85c16fec022f41be0ec0c5b5c3f (diff)
downloadchat-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')
-rw-r--r--webapp/components/post_view/post_list.jsx2
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 &&