Add all unknown people to people_dict, even if they have only been PMed with

(imported from commit 01ca442127d5289a2cdfa5e9630aa928bea0b6eb)
This commit is contained in:
Leo Franchi 2013-05-23 10:39:47 -04:00
parent 98d8095391
commit de8f43fec1

View File

@ -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);
}
}
});