people.js: Rename realm_get -> get_active_user_for_email.

We rename this function to be more clear, and we also remove
a stray function name for `realm_get` that was for the wrong
exported function.
This commit is contained in:
Steve Howell
2017-10-26 09:52:42 -07:00
parent 2699a6aac9
commit f8f4d9cb63
3 changed files with 11 additions and 11 deletions

View File

@@ -537,7 +537,7 @@ exports.is_valid_email_for_compose = function (email) {
return active_user_dict.has(person.user_id);
};
exports.realm_get = function realm_get(email) {
exports.get_active_user_for_email = function (email) {
var person = people.get_by_email(email);
if (!person) {
return undefined;
@@ -667,7 +667,7 @@ exports.filter_people_by_search_terms = function (users, search_terms) {
return filtered_users;
};
exports.get_by_name = function realm_get(name) {
exports.get_by_name = function (name) {
return people_by_name_dict.get(name);
};