Limit people in search suggestions

(imported from commit 655201100b3a9c39ffd053fd744938b5c5eb75dd)
This commit is contained in:
Steve Howell 2013-07-22 16:31:06 -04:00
parent 8c4982de82
commit 369bc02f45
1 changed files with 3 additions and 0 deletions

View File

@ -189,6 +189,9 @@ function get_private_suggestions(all_people, operators) {
people.sort(typeahead_helper.compare_by_pms);
// Take top 15 people, since they're ordered by pm_recipient_count.
people = people.slice(0, 15);
var suggestions = $.map(people, function (person) {
var name = highlight_person(query, person);
var description = 'Narrow to private messages with ' + name;