Update for breaking js-sdk RoomAvatar / MemberAvatar changes
This commit is contained in:
parent
78f2f7cfd0
commit
1041ee654e
2 changed files with 4 additions and 4 deletions
|
@ -53,8 +53,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
var url = MatrixClientPeg.get().getAvatarUrlForMember(
|
var url = this.props.member.getAvatarUrl(
|
||||||
this.props.member,
|
MatrixClientPeg.get().getHomeserverUrl(),
|
||||||
this.props.width,
|
this.props.width,
|
||||||
this.props.height,
|
this.props.height,
|
||||||
this.props.resizeMethod,
|
this.props.resizeMethod,
|
||||||
|
|
|
@ -28,8 +28,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
avatarUrlForRoom: function(room) {
|
avatarUrlForRoom: function(room) {
|
||||||
var url = MatrixClientPeg.get().getAvatarUrlForRoom(
|
var url = room.getAvatarUrl(
|
||||||
room,
|
MatrixClientPeg.get().getHomeserverUrl(),
|
||||||
this.props.width, this.props.height, this.props.resizeMethod,
|
this.props.width, this.props.height, this.props.resizeMethod,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue