summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-09 12:18:20 -0500
committerChristopher Speller <crspeller@gmail.com>2016-03-09 12:18:20 -0500
commit13837c01217550688ac25f7f61938ef59422cb2c (patch)
tree7be5393a9abfc574bddc01b2558be570b90f026e /web/react/components/post.jsx
parent3e88ef70237d2aa57982f85d740250a5443f320b (diff)
parent1a38fbf681422a1b14fceeb3dc3f16e43e8e62a6 (diff)
downloadchat-13837c01217550688ac25f7f61938ef59422cb2c.tar.gz
chat-13837c01217550688ac25f7f61938ef59422cb2c.tar.bz2
chat-13837c01217550688ac25f7f61938ef59422cb2c.zip
Merge pull request #2397 from mattermost/plt-2185
PLT-2185 Fix ... for usernames on first page load
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 889d4311e..57e919e45 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -98,7 +98,7 @@ export default class Post extends React.Component {
return true;
}
- if (nextProps.hasProfiles !== this.props.hasProfiles) {
+ if (!Utils.areObjectsEqual(nextProps.user, this.props.user)) {
return true;
}
@@ -226,7 +226,6 @@ export default class Post extends React.Component {
posts={posts}
handleCommentClick={this.handleCommentClick}
retryPost={this.retryPost}
- hasProfiles={this.props.hasProfiles}
/>
</div>
</div>
@@ -246,6 +245,5 @@ Post.propTypes = {
hideProfilePic: React.PropTypes.bool,
isLastComment: React.PropTypes.bool,
shouldHighlight: React.PropTypes.bool,
- displayNameType: React.PropTypes.string,
- hasProfiles: React.PropTypes.bool
+ displayNameType: React.PropTypes.string
};