Show displayname & avatar url in group member list
This commit is contained in:
parent
45c4eeba01
commit
4a36e32c8d
3 changed files with 11 additions and 4 deletions
|
@ -47,10 +47,13 @@ export default withMatrixClient(React.createClass({
|
|||
const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
|
||||
const EntityTile = sdk.getComponent('rooms.EntityTile');
|
||||
|
||||
const name = this.props.member.userId;
|
||||
const name = this.props.member.displayname || this.props.member.userId;
|
||||
|
||||
const av = (
|
||||
<BaseAvatar name={this.props.member.userId} width={36} height={36} />
|
||||
<BaseAvatar name={this.props.member.userId}
|
||||
width={36} height={36}
|
||||
url={this.props.matrixClient.mxcUrlToHttp(this.props.member.avatarUrl)}
|
||||
/>
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue