You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Revert "Merge pull request #4060 from matrix-org/travis/better-invite"
This reverts commit 48860f0a10
.
This commit is contained in:
@ -482,15 +482,6 @@ export default class InviteDialog extends React.PureComponent {
|
|||||||
record.score += scoreBoost;
|
record.score += scoreBoost;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Last chance: if the user ID matches the search term, score it higher
|
|
||||||
if (this.state.filterText && this.state.filterText[0] === '@') {
|
|
||||||
for (const memberId in memberScores) {
|
|
||||||
if (memberId.startsWith(this.state.filterText)) {
|
|
||||||
memberScores[memberId] += 2; // arbitrary score bump
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const members = Object.values(memberScores);
|
const members = Object.values(memberScores);
|
||||||
members.sort((a, b) => {
|
members.sort((a, b) => {
|
||||||
if (a.score === b.score) {
|
if (a.score === b.score) {
|
||||||
|
Reference in New Issue
Block a user