mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
fixup! Extend QueryMatcher's sorting heuristic
This commit is contained in:
parent
4ffc54d143
commit
2e0cb4746a
@ -118,7 +118,7 @@ export default class QueryMatcher<T extends Object> {
|
||||
const index = resultKey.indexOf(query);
|
||||
if (index !== -1 && (!this._options.shouldMatchPrefix || index === 0)) {
|
||||
matches.push(
|
||||
...candidates.map((candidate) => ({key, index, ...candidate}))
|
||||
...candidates.map((candidate) => ({index, ...candidate}))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user