mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Merge pull request #1200 from matrix-org/luke/fix-invite-sync-type-error
Possibly fix accepting invites
This commit is contained in:
commit
4218308bef
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ export default class UserProvider extends AutocompleteProvider {
|
||||||
if (member.userId !== currentUserId) return true;
|
if (member.userId !== currentUserId) return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.users = _sortBy(this.users, (completion) =>
|
this.users = _sortBy(this.users, (member) =>
|
||||||
1E20 - lastSpoken[completion.user.userId] || 1E20,
|
1E20 - lastSpoken[member.userId] || 1E20,
|
||||||
);
|
);
|
||||||
|
|
||||||
this.matcher.setObjects(this.users);
|
this.matcher.setObjects(this.users);
|
||||||
|
|
Loading…
Reference in a new issue