From de8f43fec171f9c0cd07e3bbf29bb45f82895823 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 23 May 2013 10:39:47 -0400 Subject: [PATCH] Add all unknown people to people_dict, even if they have only been PMed with (imported from commit 01ca442127d5289a2cdfa5e9630aa928bea0b6eb) --- zephyr/static/js/zephyr.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index a4e203c1a9..bbf8344c9f 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -556,9 +556,11 @@ function add_message_metadata(message, dummy) { $.each(involved_people, function (idx, person) { // Do the hasOwnProperty() call via the prototype to avoid problems // with keys like "hasOwnProperty" - if (!typeahead_helper.known_to_typeahead(person) && people_dict[person.email] === undefined) { + if (people_dict[person.email] === undefined) { add_person(person); - typeahead_helper.autocomplete_needs_update(true); + if (!typeahead_helper.known_to_typeahead(person)) { + typeahead_helper.autocomplete_needs_update(true); + } } });