mirror of https://github.com/vector-im/riot-web
Show displayname / avatar in group member info
parent
175fed490f
commit
5b312ffb03
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue