summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-12-03 09:22:20 -0500
committerJoramWilander <jwawilander@gmail.com>2015-12-03 09:22:20 -0500
commit6457a184938132dedb6387c224f25b186148cb3b (patch)
treea8d324215fa6c79b2e7704015ca4647653978c65 /web/react/components/post.jsx
parent61f90860a875cbf019570dfbb06ba716a7994fc3 (diff)
downloadchat-6457a184938132dedb6387c224f25b186148cb3b.tar.gz
chat-6457a184938132dedb6387c224f25b186148cb3b.tar.bz2
chat-6457a184938132dedb6387c224f25b186148cb3b.zip
Update post if shouldHighlight prop changes
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 66d8c507a..b32656bfc 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -95,6 +95,10 @@ export default class Post extends React.Component {
return true;
}
+ if (nextProps.shouldHighlight !== this.props.shouldHighlight) {
+ return true;
+ }
+
return false;
}
getCommentCount(props) {