updated RHS upon profile picture save (#3604)

Этот коммит содержится в:
David Lu
2016-07-18 09:31:06 -04:00
коммит произвёл Christopher Speller
родитель f7b3731b2b
Коммит 180adc79af
3 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@@ -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];
}