diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-28 20:16:31 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-02-28 22:16:31 -0300 |
commit | 2a621f7470476b0f10d6241a13fdcfd838748edd (patch) | |
tree | dedb230fcc2b85c16cdf604c4f08f5e0bf4d2b7e | |
parent | f7682ad11a3f27925b46ffc37fa66c6d4b6feef5 (diff) | |
download | chat-2a621f7470476b0f10d6241a13fdcfd838748edd.tar.gz chat-2a621f7470476b0f10d6241a13fdcfd838748edd.tar.bz2 chat-2a621f7470476b0f10d6241a13fdcfd838748edd.zip |
Don't show new message indicator for ephemeral posts (#5555)
-rw-r--r-- | webapp/components/post_view/components/post_list.jsx | 1 |
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; |