Fix last-spoke order
Turns out this timeline is the other way around, so loop through the other way
This commit is contained in:
@@ -118,8 +118,7 @@ MemberEntry.fromMemberList = function(room, members) {
|
||||
// each member last spoke
|
||||
const lastSpoke = {};
|
||||
const timelineEvents = room.getLiveTimeline().getEvents();
|
||||
for (var i = timelineEvents.length - 1; i >= 0; --i) {
|
||||
const ev = timelineEvents[i];
|
||||
for (const ev of room.getLiveTimeline().getEvents()) {
|
||||
lastSpoke[ev.getSender()] = ev.getTs();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user