Fix image avatar view for 1:1 rooms

Signed-off-by: Heiko Carrasco <heiko.carrasco@yahoo.com>
This commit is contained in:
Heiko Carrasco 2020-08-21 11:36:57 +02:00
parent 5c71e33362
commit 9193c81008
No known key found for this signature in database
GPG key ID: 06395033B42F8E01

View file

@ -114,9 +114,12 @@ export default class RoomAvatar extends React.Component<IProps, IState> {
}
private onRoomAvatarClick = () => {
const avatarUrl = this.props.room.getAvatarUrl(
MatrixClientPeg.get().getHomeserverUrl(),
null, null, null, false);
const avatarUrl = Avatar.avatarUrlForRoom(
this.props.room,
null,
null,
null,
);
const params = {
src: avatarUrl,
name: this.props.room.name,