updated RHS upon profile picture save (#3604)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
f7b3731b2b
Коммит
180adc79af
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user