From 6f18f4465d88d040eb664ab1ab3a252915f68e8f Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 11 Feb 2013 17:50:47 -0500 Subject: [PATCH] Don't add a person more than once to our people_list The full name may have changed (imported from commit 44cf37b3f5e17c28f0a6b0a4c75a5c22470a9516) --- zephyr/static/js/zephyr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 805f2eed37..0a90e99d2b 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -479,7 +479,7 @@ 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)) { + if (!typeahead_helper.known_to_typeahead(person) && people_dict[person.email] === undefined) { add_person(person); typeahead_helper.autocomplete_needs_update(true); }