diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-03 12:58:29 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-03 12:58:29 -0500 |
commit | d6265fc4c36773ca0e151ac52bc982c315d8b6c2 (patch) | |
tree | ec49473cf65a3003bc49393c0fa60092dc317ed2 /web/react | |
parent | 865b42c7be8761b3dff0dc52837a13366f1e2af6 (diff) | |
parent | 6457a184938132dedb6387c224f25b186148cb3b (diff) | |
download | chat-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/react')
-rw-r--r-- | web/react/components/post.jsx | 4 |
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) { |