mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
Add people.get_all_persons().
This commit is contained in:
@@ -26,6 +26,10 @@ var _ = global._;
|
||||
};
|
||||
people.add(orig_person);
|
||||
|
||||
var persons = people.get_all_persons();
|
||||
assert.equal(_.size(persons), 1);
|
||||
assert.equal(persons[0].full_name, 'Original');
|
||||
|
||||
var full_name = 'Isaac Newton';
|
||||
var email = 'isaac@example.com';
|
||||
var isaac = {
|
||||
|
||||
@@ -17,6 +17,10 @@ exports.realm_get = function realm_get(email) {
|
||||
return realm_people_dict.get(email);
|
||||
};
|
||||
|
||||
exports.get_all_persons = function () {
|
||||
return people_dict.values();
|
||||
};
|
||||
|
||||
exports.filter_people_by_search_terms = function (users, search_terms) {
|
||||
var filtered_users = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user