people: Rename method to get_by_user_id().

This name is consistent with:

    get_by_email()
    get_by_name()
This commit is contained in:
Steve Howell
2020-02-05 13:30:59 +00:00
committed by Tim Abbott
parent ea9212a92d
commit b8f01f9cda
35 changed files with 88 additions and 88 deletions

View File

@@ -137,7 +137,7 @@ exports.full_huddle_name = function (huddle) {
const user_ids = huddle_split(huddle);
const names = _.map(user_ids, function (user_id) {
const person = people.get_person_from_user_id(user_id);
const person = people.get_by_user_id(user_id);
return person.full_name;
});
@@ -149,7 +149,7 @@ exports.short_huddle_name = function (huddle) {
const num_to_show = 3;
let names = _.map(user_ids, function (user_id) {
const person = people.get_person_from_user_id(user_id);
const person = people.get_by_user_id(user_id);
return person.full_name;
});
@@ -418,7 +418,7 @@ exports.narrow_for_user = function (opts) {
};
exports.narrow_for_user_id = function (opts) {
const person = people.get_person_from_user_id(opts.user_id);
const person = people.get_by_user_id(opts.user_id);
const email = person.email;
narrow.by('pm-with', email, {trigger: 'sidebar'});