updated RHS upon profile picture save (#3604)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
f7b3731b2b
Коммит
180adc79af
@@ -47,6 +47,10 @@ export default class RhsComment extends React.Component {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Utils.areObjectsEqual(nextProps.currentUser, this.props.currentUser)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
createDropdown() {
|
createDropdown() {
|
||||||
|
|||||||
@@ -44,6 +44,10 @@ export default class RhsRootPost extends React.Component {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Utils.areObjectsEqual(nextProps.currentUser, this.props.currentUser)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
@@ -118,6 +118,10 @@ export default class RhsThread extends React.Component {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Utils.areObjectsEqual(nextProps.currentUser, this.props.currentUser)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
forceUpdateInfo() {
|
forceUpdateInfo() {
|
||||||
@@ -216,7 +220,7 @@ export default class RhsThread extends React.Component {
|
|||||||
|
|
||||||
let profile;
|
let profile;
|
||||||
if (UserStore.getCurrentId() === selected.user_id) {
|
if (UserStore.getCurrentId() === selected.user_id) {
|
||||||
profile = UserStore.getCurrentUser();
|
profile = this.props.currentUser;
|
||||||
} else {
|
} else {
|
||||||
profile = profiles[selected.user_id];
|
profile = profiles[selected.user_id];
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user