From 727ca8ba7792b11c337e0460a05530fd41aef69f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 20 Jan 2020 10:04:14 -0700 Subject: [PATCH] Don't double check ourselves --- src/components/views/dialogs/InviteDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index 251fb62d2c..94d4214fd4 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -432,7 +432,7 @@ export default class InviteDialog extends React.PureComponent { const events = room.getLiveTimeline().getEvents(); // timelines are most recent last for (let i = events.length - 1; i >= Math.max(0, events.length - maxMessagesConsidered); i--) { const ev = events[i]; - if (ev.getSender() === myUserId || excludedUserIds.includes(ev.getSender())) { + if (excludedUserIds.includes(ev.getSender())) { continue; } if (ev.getTs() <= earliestAgeConsidered) {