Revert unintentional change

pull/21833/head
David Baker 2017-05-08 16:39:11 +01:00
parent 534f9277d4
commit 805354bd2c
1 changed files with 0 additions and 5 deletions

View File

@ -191,7 +191,6 @@ module.exports = React.createClass({
this.queryChangedDebouncer = setTimeout(() => { this.queryChangedDebouncer = setTimeout(() => {
// Only do search if there is something to search // Only do search if there is something to search
if (query.length > 0 && query != '@') { if (query.length > 0 && query != '@') {
performance.mark('start');
// Weighted keys prefer to match userIds when first char is @ // Weighted keys prefer to match userIds when first char is @
this._fuse.options.keys = [{ this._fuse.options.keys = [{
name: 'displayName', name: 'displayName',
@ -200,7 +199,6 @@ module.exports = React.createClass({
name: 'userId', name: 'userId',
weight: query[0] === '@' ? 0.9 : 0.1, weight: query[0] === '@' ? 0.9 : 0.1,
}]; }];
performance.mark('middle');
queryList = this._fuse.search(query).map((user) => { queryList = this._fuse.search(query).map((user) => {
// Return objects, structure of which is defined // Return objects, structure of which is defined
// by InviteAddressType // by InviteAddressType
@ -212,9 +210,6 @@ module.exports = React.createClass({
isKnown: true, isKnown: true,
} }
}); });
performance.mark('end');
performance.measure('setopts', 'start', 'middle');
performance.measure('search', 'middle', 'end');
// If the query is a valid address, add an entry for that // If the query is a valid address, add an entry for that
// This is important, otherwise there's no way to invite // This is important, otherwise there's no way to invite