Reinstate client variable that is actually used
This commit is contained in:
parent
727ca8ba77
commit
7c877fb9c4
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,8 @@ export default class InviteDialog extends React.PureComponent {
|
||||||
|
|
||||||
_buildSuggestions(excludedTargetIds: string[]): {userId: string, user: RoomMember} {
|
_buildSuggestions(excludedTargetIds: string[]): {userId: string, user: RoomMember} {
|
||||||
const maxConsideredMembers = 200;
|
const maxConsideredMembers = 200;
|
||||||
const myUserId = MatrixClientPeg.get().getUserId();
|
const client = MatrixClientPeg.get();
|
||||||
const excludedUserIds = [myUserId, SdkConfig.get()['welcomeUserId']];
|
const excludedUserIds = [client.getUserId(), SdkConfig.get()['welcomeUserId']];
|
||||||
const joinedRooms = client.getRooms()
|
const joinedRooms = client.getRooms()
|
||||||
.filter(r => r.getMyMembership() === 'join')
|
.filter(r => r.getMyMembership() === 'join')
|
||||||
.filter(r => r.getJoinedMemberCount() <= maxConsideredMembers);
|
.filter(r => r.getJoinedMemberCount() <= maxConsideredMembers);
|
||||||
|
|
Loading…
Reference in a new issue