summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-02-28 20:16:31 -0500
committerenahum <nahumhbl@gmail.com>2017-02-28 22:16:31 -0300
commit2a621f7470476b0f10d6241a13fdcfd838748edd (patch)
treededb230fcc2b85c16cdf604c4f08f5e0bf4d2b7e /webapp
parentf7682ad11a3f27925b46ffc37fa66c6d4b6feef5 (diff)
downloadchat-2a621f7470476b0f10d6241a13fdcfd838748edd.tar.gz
chat-2a621f7470476b0f10d6241a13fdcfd838748edd.tar.bz2
chat-2a621f7470476b0f10d6241a13fdcfd838748edd.zip
Don't show new message indicator for ephemeral posts (#5555)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/post_view/components/post_list.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx
index 3584e9923..d95d68120 100644
--- a/webapp/components/post_view/components/post_list.jsx
+++ b/webapp/components/post_view/components/post_list.jsx
@@ -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;