mirror of https://github.com/zulip/zulip.git
settings_user_groups.js: Remove unnecessary call to get a person.
This commit is contained in:
parent
bf5f1b5f20
commit
40f161ca63
|
@ -73,12 +73,9 @@ exports.populate_user_groups = function () {
|
||||||
if (pills.keys().includes(item.user_id)) {
|
if (pills.keys().includes(item.user_id)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var person = people.get_person_from_user_id(item.user_id);
|
|
||||||
var query = this.query.toLowerCase();
|
var query = this.query.toLowerCase();
|
||||||
|
return (item.email.toLowerCase().indexOf(query) !== -1
|
||||||
return (person.email.toLowerCase().indexOf(query) !== -1
|
|| item.full_name.toLowerCase().indexOf(query) !== -1);
|
||||||
|| person.full_name.toLowerCase().indexOf(query) !== -1);
|
|
||||||
},
|
},
|
||||||
sorter: function (matches) {
|
sorter: function (matches) {
|
||||||
return typeahead_helper.sort_recipientbox_typeahead(
|
return typeahead_helper.sort_recipientbox_typeahead(
|
||||||
|
|
Loading…
Reference in New Issue