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() { 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,

View file

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