From 1041ee654e0fa5e1593b23991f8c5cccea00e3cd Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Oct 2015 10:30:58 +0100 Subject: [PATCH] Update for breaking js-sdk RoomAvatar / MemberAvatar changes --- src/controllers/atoms/MemberAvatar.js | 4 ++-- src/controllers/atoms/RoomAvatar.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/atoms/MemberAvatar.js b/src/controllers/atoms/MemberAvatar.js index 5d93f99947..a94b4291a0 100644 --- a/src/controllers/atoms/MemberAvatar.js +++ b/src/controllers/atoms/MemberAvatar.js @@ -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, diff --git a/src/controllers/atoms/RoomAvatar.js b/src/controllers/atoms/RoomAvatar.js index dc0ac82eb4..44048869ce 100644 --- a/src/controllers/atoms/RoomAvatar.js +++ b/src/controllers/atoms/RoomAvatar.js @@ -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 );