summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-11-23 17:14:13 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-01 08:21:58 -0800
commit478af4bf7501404ab53dd9afe981b26721682834 (patch)
treea0834c381d38f9035c99912397bfb8cc41a00226 /web/react/components/post.jsx
parent62c96514bfa243029dba2d9b47b5b8a8322059e4 (diff)
downloadchat-478af4bf7501404ab53dd9afe981b26721682834.tar.gz
chat-478af4bf7501404ab53dd9afe981b26721682834.tar.bz2
chat-478af4bf7501404ab53dd9afe981b26721682834.zip
Enabled name display settings in more places
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 278261e22..66d8c507a 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -87,6 +87,10 @@ export default class Post extends React.Component {
return true;
}
+ if (nextProps.displayNameType !== this.props.displayNameType) {
+ return true;
+ }
+
if (this.getCommentCount(nextProps) !== this.getCommentCount(this.props)) {
return true;
}
@@ -224,5 +228,6 @@ Post.propTypes = {
sameRoot: React.PropTypes.bool,
hideProfilePic: React.PropTypes.bool,
isLastComment: React.PropTypes.bool,
- shouldHighlight: React.PropTypes.bool
+ shouldHighlight: React.PropTypes.bool,
+ displayNameType: React.PropTypes.string
};