summaryrefslogtreecommitdiffstats
path: root/webapp/components/posts_view.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-04-01 11:53:49 -0400
committerJoramWilander <jwawilander@gmail.com>2016-04-04 08:30:11 -0400
commit0f3d62364b7efaa553c711f2a63852a09b34277c (patch)
tree1e04f5fbd081dc32025784ccc1e990a1507632b3 /webapp/components/posts_view.jsx
parent785553384fe96027b0e9274b6ccc8623092eda70 (diff)
downloadchat-0f3d62364b7efaa553c711f2a63852a09b34277c.tar.gz
chat-0f3d62364b7efaa553c711f2a63852a09b34277c.tar.bz2
chat-0f3d62364b7efaa553c711f2a63852a09b34277c.zip
Properly display webhook username/icon in search results
Diffstat (limited to 'webapp/components/posts_view.jsx')
-rw-r--r--webapp/components/posts_view.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/posts_view.jsx b/webapp/components/posts_view.jsx
index ffe04daa1..aa7f445ce 100644
--- a/webapp/components/posts_view.jsx
+++ b/webapp/components/posts_view.jsx
@@ -204,10 +204,12 @@ export default class PostsView extends React.Component {
// the previous post was made by the same user as the current post,
// the previous post is not a comment,
// the current post is not a comment,
+ // the previous post is not from a webhook
// the current post is not from a webhook
if (prevPostUserId === postUserId &&
!prevPostIsComment &&
!postIsComment &&
+ !prevPostFromWebhook &&
!postFromWebhook) {
hideProfilePic = true;
}