Call add_in_realm() when loading people from page_params.

This commit is contained in:
Steve Howell 2016-11-01 13:01:42 -07:00 committed by Tim Abbott
parent d70ac2fc0d
commit a126be3db6
1 changed files with 1 additions and 4 deletions

View File

@ -186,10 +186,7 @@ exports.update = function update(person) {
$(function () {
_.each(page_params.people_list, function (person) {
people_dict.set(person.email, person);
people_by_name_dict.set(person.full_name, person);
realm_people_dict.set(person.email, person);
person.pm_recipient_count = 0;
exports.add_in_realm(person);
});
delete page_params.people_list; // We are the only consumer of this.