mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Fix image avatar view for 1:1 rooms
Signed-off-by: Heiko Carrasco <heiko.carrasco@yahoo.com>
This commit is contained in:
parent
5c71e33362
commit
9193c81008
1 changed files with 6 additions and 3 deletions
|
@ -114,9 +114,12 @@ export default class RoomAvatar extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private onRoomAvatarClick = () => {
|
private onRoomAvatarClick = () => {
|
||||||
const avatarUrl = this.props.room.getAvatarUrl(
|
const avatarUrl = Avatar.avatarUrlForRoom(
|
||||||
MatrixClientPeg.get().getHomeserverUrl(),
|
this.props.room,
|
||||||
null, null, null, false);
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
);
|
||||||
const params = {
|
const params = {
|
||||||
src: avatarUrl,
|
src: avatarUrl,
|
||||||
name: this.props.room.name,
|
name: this.props.room.name,
|
||||||
|
|
Loading…
Reference in a new issue