Only show unreads below indicator after first load is complete (#6874)

This commit is contained in:
Joram Wilander
2017-07-07 19:27:13 -04:00
committed by Saturnino Abril
parent 61adde5112
commit e8c02c7c1d

View File

@@ -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 &&