mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Merge pull request #5687 from robintown/autocomplete-invited-users
Autocomplete invited users
This commit is contained in:
commit
91a47f96e2
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user