Fix null error in TabComplete

.sende ris sometimes null: use getSender() which isn't and returns the userId which is what we actually want
pull/21833/head
David Baker 2016-07-14 11:40:17 +01:00
parent 0dde891d4c
commit 2ce521fe38
1 changed files with 1 additions and 1 deletions

View File

@ -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) {