Fix null error in TabComplete

.sende ris sometimes null: use getSender() which isn't and returns the userId which is what we actually want
This commit is contained in:
David Baker 2016-07-14 11:40:17 +01:00
parent 0dde891d4c
commit 2ce521fe38

View file

@ -120,7 +120,7 @@ MemberEntry.fromMemberList = function(room, members) {
const timelineEvents = room.getLiveTimeline().getEvents();
for (var i = timelineEvents.length - 1; i >= 0; --i) {
const ev = timelineEvents[i];
lastSpoke[ev.sender.userId] = ev.getTs();
lastSpoke[ev.getSender()] = ev.getTs();
}
return members.sort(function(a, b) {