take into account lazy loading when enlarging avatar
This commit is contained in:
parent
af77f0206a
commit
8c9ceca14f
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ module.exports = withMatrixClient(React.createClass({
|
||||||
|
|
||||||
onMemberAvatarClick: function() {
|
onMemberAvatarClick: function() {
|
||||||
const member = this.props.member;
|
const member = this.props.member;
|
||||||
const avatarUrl = member.user ? member.user.avatarUrl : member.events.member.getContent().avatar_url;
|
const avatarUrl = member.getMxcAvatarUrl();
|
||||||
if (!avatarUrl) return;
|
if (!avatarUrl) return;
|
||||||
|
|
||||||
const httpUrl = this.props.matrixClient.mxcUrlToHttp(avatarUrl);
|
const httpUrl = this.props.matrixClient.mxcUrlToHttp(avatarUrl);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue