mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
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
@ -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 New Issue
Block a user