From 9193c81008056dac32272aa9ce04bda411566bb1 Mon Sep 17 00:00:00 2001 From: Heiko Carrasco Date: Fri, 21 Aug 2020 11:36:57 +0200 Subject: [PATCH] Fix image avatar view for 1:1 rooms Signed-off-by: Heiko Carrasco --- src/components/views/avatars/RoomAvatar.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/views/avatars/RoomAvatar.tsx b/src/components/views/avatars/RoomAvatar.tsx index 3317ed3a60..e37dff4bfe 100644 --- a/src/components/views/avatars/RoomAvatar.tsx +++ b/src/components/views/avatars/RoomAvatar.tsx @@ -114,9 +114,12 @@ export default class RoomAvatar extends React.Component { } 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,