mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Only show unreads below indicator after first load is complete (#6874)
This commit is contained in:
committed by
Saturnino Abril
parent
61adde5112
commit
e8c02c7c1d
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user