From 2ce521fe387428f105013da133c3bf57d291e03c Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 14 Jul 2016 11:40:17 +0100 Subject: [PATCH] Fix null error in TabComplete .sende ris sometimes null: use getSender() which isn't and returns the userId which is what we actually want --- src/TabCompleteEntries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TabCompleteEntries.js b/src/TabCompleteEntries.js index 488aaa57a6..3cfe07c7c0 100644 --- a/src/TabCompleteEntries.js +++ b/src/TabCompleteEntries.js @@ -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) {