You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Add width/height/resizeMethod params
This commit is contained in:
@@ -152,10 +152,15 @@ module.exports = withMatrixClient(React.createClass({
|
||||
</div>;
|
||||
}
|
||||
|
||||
const avatarUrl = this.props.matrixClient.mxcUrlToHttp(
|
||||
this.props.groupMember.avatarUrl,
|
||||
36, 36, 'crop'
|
||||
);
|
||||
|
||||
const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
|
||||
const avatar = (
|
||||
<BaseAvatar name={this.props.groupMember.userId} width={36} height={36}
|
||||
url={this.props.matrixClient.mxcUrlToHttp(this.props.groupMember.avatarUrl)}
|
||||
url={avatarUrl}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
@@ -48,11 +48,15 @@ export default withMatrixClient(React.createClass({
|
||||
const EntityTile = sdk.getComponent('rooms.EntityTile');
|
||||
|
||||
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 = (
|
||||
<BaseAvatar name={this.props.member.userId}
|
||||
width={36} height={36}
|
||||
url={this.props.matrixClient.mxcUrlToHttp(this.props.member.avatarUrl)}
|
||||
url={avatarUrl}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user