Cache lookup URIs

This commit is contained in:
M66B
2019-03-31 09:09:32 +02:00
parent 248a47be2c
commit 17ef530547
7 changed files with 90 additions and 20 deletions

View File

@@ -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);