mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Cache contact info a short while
This commit is contained in:
@@ -489,7 +489,9 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
// Get contact info
|
||||
Map<TupleMessageEx, ContactInfo> messageContact = new HashMap<>();
|
||||
for (TupleMessageEx message : messages) {
|
||||
ContactInfo info = ContactInfo.get(this, message.from);
|
||||
ContactInfo info = ContactInfo.get(this, message.from, true);
|
||||
if (info == null)
|
||||
info = ContactInfo.get(this, message.from, false);
|
||||
if (info == null)
|
||||
info = new ContactInfo(MessageHelper.formatAddressesShort(message.from));
|
||||
messageContact.put(message, info);
|
||||
|
||||
Reference in New Issue
Block a user