You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Autocomplete invited users
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
@@ -155,6 +155,7 @@ export default class UserProvider extends AutocompleteProvider {
|
|||||||
|
|
||||||
const currentUserId = MatrixClientPeg.get().credentials.userId;
|
const currentUserId = MatrixClientPeg.get().credentials.userId;
|
||||||
this.users = this.room.getJoinedMembers().filter(({userId}) => userId !== currentUserId);
|
this.users = this.room.getJoinedMembers().filter(({userId}) => userId !== currentUserId);
|
||||||
|
this.users = this.users.concat(this.room.getMembersWithMembership("invite"));
|
||||||
|
|
||||||
this.users = sortBy(this.users, (member) => 1E20 - lastSpoken[member.userId] || 1E20);
|
this.users = sortBy(this.users, (member) => 1E20 - lastSpoken[member.userId] || 1E20);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user