mirror of https://github.com/vector-im/riot-web
Merge pull request #5137 from miterion/develop
Allow avatar image view for 1:1 roomspull/21833/head
commit
765f474458
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue