summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-03 12:58:29 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-03 12:58:29 -0500
commitd6265fc4c36773ca0e151ac52bc982c315d8b6c2 (patch)
treeec49473cf65a3003bc49393c0fa60092dc317ed2 /web
parent865b42c7be8761b3dff0dc52837a13366f1e2af6 (diff)
parent6457a184938132dedb6387c224f25b186148cb3b (diff)
downloadchat-d6265fc4c36773ca0e151ac52bc982c315d8b6c2.tar.gz
chat-d6265fc4c36773ca0e151ac52bc982c315d8b6c2.tar.bz2
chat-d6265fc4c36773ca0e151ac52bc982c315d8b6c2.zip
Merge pull request #1594 from mattermost/plt-1332
PLT-1332 Update post if shouldHighlight prop changes
Diffstat (limited to 'web')
-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) {