mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 17:40:34 +01:00
Cache lookup URIs
This commit is contained in:
@@ -1814,7 +1814,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
}
|
||||
|
||||
draft.sender = MessageHelper.getSortKey(draft.from);
|
||||
Uri lookupUri = ContactInfo.getLookupUri(context, draft.from);
|
||||
Uri lookupUri = ContactInfo.getLookupUri(context, draft.from, true);
|
||||
draft.avatar = (lookupUri == null ? null : lookupUri.toString());
|
||||
|
||||
draft.received = new Date().getTime();
|
||||
@@ -2171,7 +2171,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
draft.received = new Date().getTime();
|
||||
|
||||
draft.sender = MessageHelper.getSortKey(draft.from);
|
||||
Uri lookupUri = ContactInfo.getLookupUri(context, draft.from);
|
||||
Uri lookupUri = ContactInfo.getLookupUri(context, draft.from, true);
|
||||
draft.avatar = (lookupUri == null ? null : lookupUri.toString());
|
||||
|
||||
db.message().updateMessage(draft);
|
||||
|
||||
Reference in New Issue
Block a user