Don't double check ourselves

pull/21833/head
Travis Ralston 2020-01-20 10:04:14 -07:00
parent 551b2907d8
commit 727ca8ba77
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ export default class InviteDialog extends React.PureComponent {
const events = room.getLiveTimeline().getEvents(); // timelines are most recent last const events = room.getLiveTimeline().getEvents(); // timelines are most recent last
for (let i = events.length - 1; i >= Math.max(0, events.length - maxMessagesConsidered); i--) { for (let i = events.length - 1; i >= Math.max(0, events.length - maxMessagesConsidered); i--) {
const ev = events[i]; const ev = events[i];
if (ev.getSender() === myUserId || excludedUserIds.includes(ev.getSender())) { if (excludedUserIds.includes(ev.getSender())) {
continue; continue;
} }
if (ev.getTs() <= earliestAgeConsidered) { if (ev.getTs() <= earliestAgeConsidered) {