mirror of https://github.com/vector-im/riot-web
Fix references to 'this' in Avatar and Unread
parent
4aec432b30
commit
206d4c78d2
|
@ -32,7 +32,7 @@ export function avatarUrlForMember(member, width, height, resizeMethod) {
|
||||||
// member can be null here currently since on invites, the JS SDK
|
// member can be null here currently since on invites, the JS SDK
|
||||||
// does not have enough info to build a RoomMember object for
|
// does not have enough info to build a RoomMember object for
|
||||||
// the inviter.
|
// the inviter.
|
||||||
url = this.defaultAvatarUrlForString(member ? member.userId : '');
|
url = defaultAvatarUrlForString(member ? member.userId : '');
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ export function doesRoomHaveUnreadMessages(room) {
|
||||||
// that counts and we can stop looking because the user's read
|
// that counts and we can stop looking because the user's read
|
||||||
// this and everything before.
|
// this and everything before.
|
||||||
return false;
|
return false;
|
||||||
} else if (!shouldHideEvent(ev) && this.eventTriggersUnreadCount(ev)) {
|
} else if (!shouldHideEvent(ev) && eventTriggersUnreadCount(ev)) {
|
||||||
// We've found a message that counts before we hit
|
// We've found a message that counts before we hit
|
||||||
// the user's read receipt, so this room is definitely unread.
|
// the user's read receipt, so this room is definitely unread.
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue