mirror of https://github.com/zulip/zulip.git
Call add_in_realm() when loading people from page_params.
This commit is contained in:
parent
d70ac2fc0d
commit
a126be3db6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue