mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Add all unknown people to people_dict, even if they have only been PMed with
(imported from commit 01ca442127d5289a2cdfa5e9630aa928bea0b6eb)
This commit is contained in:
parent
98d8095391
commit
de8f43fec1
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user