summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-02-22 11:09:35 -0500
committerJoramWilander <jwawilander@gmail.com>2016-02-22 11:10:31 -0500
commitc16071afc5320677bc2c13fa4dff941152e18970 (patch)
tree4eb5cd6efa2ad7ea60a2070bb6a10066f32fa3cf /web/react/components/post.jsx
parent9b30fad8ad4d9d83fd119ed9e4bfb591ebca46e2 (diff)
downloadchat-c16071afc5320677bc2c13fa4dff941152e18970.tar.gz
chat-c16071afc5320677bc2c13fa4dff941152e18970.tar.bz2
chat-c16071afc5320677bc2c13fa4dff941152e18970.zip
Move post_body profile change listener into posts view
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 3619a9f8f..5a850d1c5 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -99,6 +99,10 @@ export default class Post extends React.Component {
return true;
}
+ if (nextProps.hasProfiles !== this.props.hasProfiles) {
+ return true;
+ }
+
return false;
}
getCommentCount(props) {
@@ -223,6 +227,7 @@ export default class Post extends React.Component {
posts={posts}
handleCommentClick={this.handleCommentClick}
retryPost={this.retryPost}
+ hasProfiles={this.props.hasProfiles}
/>
</div>
</div>
@@ -233,7 +238,7 @@ export default class Post extends React.Component {
}
Post.propTypes = {
- post: React.PropTypes.object,
+ post: React.PropTypes.object.isRequired,
posts: React.PropTypes.object,
parentPost: React.PropTypes.object,
sameUser: React.PropTypes.bool,
@@ -241,5 +246,6 @@ Post.propTypes = {
hideProfilePic: React.PropTypes.bool,
isLastComment: React.PropTypes.bool,
shouldHighlight: React.PropTypes.bool,
- displayNameType: React.PropTypes.string
+ displayNameType: React.PropTypes.string,
+ hasProfiles: React.PropTypes.bool
};