mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +00:00
Don't add a person more than once to our people_list
The full name may have changed (imported from commit 44cf37b3f5e17c28f0a6b0a4c75a5c22470a9516)
This commit is contained in:
@@ -479,7 +479,7 @@ function add_message_metadata(message, dummy) {
|
|||||||
$.each(involved_people, function (idx, person) {
|
$.each(involved_people, function (idx, person) {
|
||||||
// Do the hasOwnProperty() call via the prototype to avoid problems
|
// Do the hasOwnProperty() call via the prototype to avoid problems
|
||||||
// with keys like "hasOwnProperty"
|
// 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);
|
add_person(person);
|
||||||
typeahead_helper.autocomplete_needs_update(true);
|
typeahead_helper.autocomplete_needs_update(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user