Merge pull request #5687 from robintown/autocomplete-invited-users

Autocomplete invited users
This commit is contained in:
Travis Ralston 2021-02-26 14:55:51 -07:00 committed by GitHub
commit 91a47f96e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,6 +155,7 @@ export default class UserProvider extends AutocompleteProvider {
const currentUserId = MatrixClientPeg.get().credentials.userId;
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);