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() {
|
||||
var url = MatrixClientPeg.get().getAvatarUrlForMember(
|
||||
this.props.member,
|
||||
var url = this.props.member.getAvatarUrl(
|
||||
MatrixClientPeg.get().getHomeserverUrl(),
|
||||
this.props.width,
|
||||
this.props.height,
|
||||
this.props.resizeMethod,
|
||||
|
|
|
@ -28,8 +28,8 @@ module.exports = {
|
|||
},
|
||||
|
||||
avatarUrlForRoom: function(room) {
|
||||
var url = MatrixClientPeg.get().getAvatarUrlForRoom(
|
||||
room,
|
||||
var url = room.getAvatarUrl(
|
||||
MatrixClientPeg.get().getHomeserverUrl(),
|
||||
this.props.width, this.props.height, this.props.resizeMethod,
|
||||
false
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue