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

@@ -260,7 +260,7 @@ public class EntityRule {
reply.received = new Date().getTime();
reply.sender = MessageHelper.getSortKey(reply.from);
Uri lookupUri = ContactInfo.getLookupUri(context, reply.from);
Uri lookupUri = ContactInfo.getLookupUri(context, reply.from, true);
reply.avatar = (lookupUri == null ? null : lookupUri.toString());
reply.id = db.message().insertMessage(reply);