update contacts-cache users for MessageContact

Since contacts-cache now uses MessageContact, update its users
This commit is contained in:
Dirk-Jan C. Binnema
2022-02-20 00:35:43 +02:00
parent 4b9814be25
commit 7822d2633e
3 changed files with 10 additions and 14 deletions

View File

@ -1007,12 +1007,7 @@ add_contacts_terms_values(Xapian::Document& doc, MuMsg *msg,
termgen.index_text_without_positions(contact.email, 1, pfx);
/* and add to the contact store.*/
contacts_cache.add(ContactInfo{
contact.display_name(),
contact.email,
contact.name,
contacts_cache.is_personal(contact.email),
contact.message_date});
contacts_cache.add(std::move(contact));
}
}