Show displayname / avatar in group member info

pull/21833/head
David Baker 2017-09-25 14:38:43 +01:00
parent 175fed490f
commit 5b312ffb03
1 changed files with 6 additions and 2 deletions

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 (