mirror of https://github.com/vector-im/riot-web
Fix null error in TabComplete
.sende ris sometimes null: use getSender() which isn't and returns the userId which is what we actually wantpull/21833/head
parent
0dde891d4c
commit
2ce521fe38
|
@ -120,7 +120,7 @@ MemberEntry.fromMemberList = function(room, members) {
|
||||||
const timelineEvents = room.getLiveTimeline().getEvents();
|
const timelineEvents = room.getLiveTimeline().getEvents();
|
||||||
for (var i = timelineEvents.length - 1; i >= 0; --i) {
|
for (var i = timelineEvents.length - 1; i >= 0; --i) {
|
||||||
const ev = timelineEvents[i];
|
const ev = timelineEvents[i];
|
||||||
lastSpoke[ev.sender.userId] = ev.getTs();
|
lastSpoke[ev.getSender()] = ev.getTs();
|
||||||
}
|
}
|
||||||
|
|
||||||
return members.sort(function(a, b) {
|
return members.sort(function(a, b) {
|
||||||
|
|
Loading…
Reference in New Issue