mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Don't overwrite already reified people
(imported from commit ab82e5b6b8bedfbd39e7c36892c0b401796a5fdb)
This commit is contained in:
@@ -88,6 +88,13 @@ exports.reify = function reify(person) {
|
||||
}
|
||||
|
||||
var old_person = people_dict.get(person.email);
|
||||
|
||||
// Don't overwrite an already-reified person. If we have
|
||||
// a full name, we already have the full person object loaded
|
||||
if (old_person.full_name !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
var old_idx = page_params.people_list.indexOf(old_person);
|
||||
|
||||
var new_person = _.extend({}, old_person, person);
|
||||
|
||||
Reference in New Issue
Block a user