Don't show new message indicator for ephemeral posts (#5555)

This commit is contained in:
Joram Wilander
2017-02-28 22:16:31 -03:00
committed by enahum
parent f7682ad11a
commit 2a621f7470
@@ -378,6 +378,7 @@ export default class PostList extends React.Component {
if ((postUserId !== userId || this.props.ownNewMessage) &&
this.props.lastViewed !== 0 &&
post.create_at > this.props.lastViewed &&
!Utils.isPostEphemeral(post) &&
!renderedLastViewed) {
renderedLastViewed = true;