Fix avatars

pull/21833/head
David Baker 2017-06-27 10:32:21 +01:00
parent 867b47f4a2
commit 971f7ad045
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ module.exports = React.createClass({
} else if (this.state.summary) {
const summary = this.state.summary;
let avatarUrl = null;
if (summary.profile.avatarUrl) {
avatarUrl = MatrixClientPeg.get().mxcUrlToHttp(summary.profile.avatarUrl);
if (summary.profile.avatar_url) {
avatarUrl = MatrixClientPeg.get().mxcUrlToHttp(summary.profile.avatar_url);
}
let description = null;
if (summary.profile.long_description) {