mirror of https://github.com/vector-im/riot-web
Fix MemberInfo handling User objects without crashing
parent
2fbda42374
commit
83fdeeb180
|
@ -1113,7 +1113,8 @@ export default createReactClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const avatarUrl = this.props.member.getMxcAvatarUrl();
|
const {member} = this.props;
|
||||||
|
const avatarUrl = member.avatarUrl || (member.getMxcAvatarUrl && member.getMxcAvatarUrl());
|
||||||
let avatarElement;
|
let avatarElement;
|
||||||
if (avatarUrl) {
|
if (avatarUrl) {
|
||||||
const httpUrl = this.context.mxcUrlToHttp(avatarUrl, 800, 800);
|
const httpUrl = this.context.mxcUrlToHttp(avatarUrl, 800, 800);
|
||||||
|
|
Loading…
Reference in New Issue