mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-24 16:01:42 +02:00
Fix MemberInfo handling User objects without crashing
This commit is contained in:
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;
|
||||
if (avatarUrl) {
|
||||
const httpUrl = this.context.mxcUrlToHttp(avatarUrl, 800, 800);
|
||||
|
Loading…
x
Reference in New Issue
Block a user