Fix avatars

This commit is contained in:
David Baker 2017-06-27 10:32:21 +01:00
parent 867b47f4a2
commit 971f7ad045

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) {