mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-03 11:32:07 +02:00
Update for breaking js-sdk RoomAvatar / MemberAvatar changes
This commit is contained in:
parent
78f2f7cfd0
commit
1041ee654e
@ -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…
x
Reference in New Issue
Block a user