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:
parent
0dde891d4c
commit
2ce521fe38
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue