mirror of https://github.com/vector-im/riot-web
Merge pull request #1426 from matrix-org/dbkr/profile_in_group_member_info
Show displayname / avatar in group member infopull/21833/head
commit
d9c2f6e610
|
@ -152,12 +152,21 @@ module.exports = withMatrixClient(React.createClass({
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
|
const avatarUrl = this.props.matrixClient.mxcUrlToHttp(
|
||||||
const avatar = (
|
this.props.groupMember.avatarUrl,
|
||||||
<BaseAvatar name={this.props.groupMember.userId} width={36} height={36} />
|
36, 36, 'crop',
|
||||||
);
|
);
|
||||||
|
|
||||||
const groupMemberName = this.props.groupMember.userId;
|
const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
|
||||||
|
const avatar = (
|
||||||
|
<BaseAvatar name={this.props.groupMember.userId} width={36} height={36}
|
||||||
|
url={avatarUrl}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
const groupMemberName = (
|
||||||
|
this.props.groupMember.displayname || this.props.groupMember.userId
|
||||||
|
);
|
||||||
|
|
||||||
const EmojiText = sdk.getComponent('elements.EmojiText');
|
const EmojiText = sdk.getComponent('elements.EmojiText');
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -48,11 +48,15 @@ export default withMatrixClient(React.createClass({
|
||||||
const EntityTile = sdk.getComponent('rooms.EntityTile');
|
const EntityTile = sdk.getComponent('rooms.EntityTile');
|
||||||
|
|
||||||
const name = this.props.member.displayname || this.props.member.userId;
|
const name = this.props.member.displayname || this.props.member.userId;
|
||||||
|
const avatarUrl = this.props.matrixClient.mxcUrlToHttp(
|
||||||
|
this.props.member.avatarUrl,
|
||||||
|
36, 36, 'crop',
|
||||||
|
);
|
||||||
|
|
||||||
const av = (
|
const av = (
|
||||||
<BaseAvatar name={this.props.member.userId}
|
<BaseAvatar name={this.props.member.userId}
|
||||||
width={36} height={36}
|
width={36} height={36}
|
||||||
url={this.props.matrixClient.mxcUrlToHttp(this.props.member.avatarUrl)}
|
url={avatarUrl}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue