Show displayname / avatar in group member info

This commit is contained in:
David Baker 2017-09-25 14:38:43 +01:00
parent 175fed490f
commit 5b312ffb03

View file

@ -154,10 +154,14 @@ module.exports = withMatrixClient(React.createClass({
const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
const avatar = (
<BaseAvatar name={this.props.groupMember.userId} width={36} height={36} />
<BaseAvatar name={this.props.groupMember.userId} width={36} height={36}
url={this.props.matrixClient.mxcUrlToHttp(this.props.groupMember.avatarUrl)}
/>
);
const groupMemberName = this.props.groupMember.userId;
const groupMemberName = (
this.props.groupMember.displayname || this.props.groupMember.userId
);
const EmojiText = sdk.getComponent('elements.EmojiText');
return (