mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Avoid get_updates failing to update following bugged update_person events.
(imported from commit 7785277ab967a67135e1bd4aa226a0d64adccaba)
This commit is contained in:
parent
9132baacc2
commit
9dbbdb1cdf
@ -59,6 +59,11 @@ function update_person(person) {
|
||||
// that can change, this will need to either get complicated or be
|
||||
// replaced by MVC
|
||||
var i;
|
||||
if (people_dict[person.email] === undefined) {
|
||||
blueslip.error("Got update_person event for unexpected user",
|
||||
{email: person.email});
|
||||
return;
|
||||
}
|
||||
people_dict[person.email].full_name = person.full_name;
|
||||
for (i = 0; i < page_params.people_list.length; i++) {
|
||||
if (page_params.people_list[i].email === person.email) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user