diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/rhs_comment.jsx | 4 | ||||
-rw-r--r-- | webapp/components/rhs_root_post.jsx | 4 | ||||
-rw-r--r-- | webapp/components/rhs_thread.jsx | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 249d3f14a..ac029f6fa 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -47,6 +47,10 @@ export default class RhsComment extends React.Component { return true; } + if (!Utils.areObjectsEqual(nextProps.currentUser, this.props.currentUser)) { + return true; + } + return false; } createDropdown() { diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 230e4bb2d..1aee008e7 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -44,6 +44,10 @@ export default class RhsRootPost extends React.Component { return true; } + if (!Utils.areObjectsEqual(nextProps.currentUser, this.props.currentUser)) { + return true; + } + return false; } render() { diff --git a/webapp/components/rhs_thread.jsx b/webapp/components/rhs_thread.jsx index 9e2ecd159..5da4b2e9b 100644 --- a/webapp/components/rhs_thread.jsx +++ b/webapp/components/rhs_thread.jsx @@ -118,6 +118,10 @@ export default class RhsThread extends React.Component { return true; } + if (!Utils.areObjectsEqual(nextProps.currentUser, this.props.currentUser)) { + return true; + } + return false; } forceUpdateInfo() { @@ -216,7 +220,7 @@ export default class RhsThread extends React.Component { let profile; if (UserStore.getCurrentId() === selected.user_id) { - profile = UserStore.getCurrentUser(); + profile = this.props.currentUser; } else { profile = profiles[selected.user_id]; } |