From 7c877fb9c4b50935bb3dd8849c8861ec688d02da Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 20 Jan 2020 10:08:35 -0700 Subject: [PATCH] Reinstate client variable that is actually used --- src/components/views/dialogs/InviteDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index 94d4214fd4..703b0b5121 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -359,8 +359,8 @@ export default class InviteDialog extends React.PureComponent { _buildSuggestions(excludedTargetIds: string[]): {userId: string, user: RoomMember} { const maxConsideredMembers = 200; - const myUserId = MatrixClientPeg.get().getUserId(); - const excludedUserIds = [myUserId, SdkConfig.get()['welcomeUserId']]; + const client = MatrixClientPeg.get(); + const excludedUserIds = [client.getUserId(), SdkConfig.get()['welcomeUserId']]; const joinedRooms = client.getRooms() .filter(r => r.getMyMembership() === 'join') .filter(r => r.getJoinedMemberCount() <= maxConsideredMembers);