Update for breaking js-sdk RoomAvatar / MemberAvatar changes

This commit is contained in:
David Baker 2015-10-20 10:30:58 +01:00
parent 78f2f7cfd0
commit 1041ee654e
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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
);