mirror of https://github.com/vector-im/riot-web
fix cp error and lint
parent
3c3839f863
commit
2b19648786
|
@ -23,7 +23,6 @@ import AutocompleteProvider from './AutocompleteProvider';
|
||||||
import {MatrixClientPeg} from '../MatrixClientPeg';
|
import {MatrixClientPeg} from '../MatrixClientPeg';
|
||||||
import QueryMatcher from './QueryMatcher';
|
import QueryMatcher from './QueryMatcher';
|
||||||
import {PillCompletion} from './Components';
|
import {PillCompletion} from './Components';
|
||||||
import {getDisplayAliasForRoom} from '../Rooms';
|
|
||||||
import * as sdk from '../index';
|
import * as sdk from '../index';
|
||||||
import _sortBy from 'lodash/sortBy';
|
import _sortBy from 'lodash/sortBy';
|
||||||
import {makeRoomPermalink} from "../utils/permalinks/Permalinks";
|
import {makeRoomPermalink} from "../utils/permalinks/Permalinks";
|
||||||
|
@ -92,6 +91,7 @@ export default class RoomProvider extends AutocompleteProvider {
|
||||||
completions = _sortBy(completions, [
|
completions = _sortBy(completions, [
|
||||||
(c) => score(matchedString, c.displayedAlias),
|
(c) => score(matchedString, c.displayedAlias),
|
||||||
(c) => c.displayedAlias.length,
|
(c) => c.displayedAlias.length,
|
||||||
|
]);
|
||||||
completions = completions.map((room) => {
|
completions = completions.map((room) => {
|
||||||
return {
|
return {
|
||||||
completion: room.displayedAlias,
|
completion: room.displayedAlias,
|
||||||
|
|
Loading…
Reference in New Issue