Write to RecipientIdCache on cache miss.

This commit is contained in:
Greyson Parrelli 2021-07-07 12:19:04 -04:00 committed by Alex Hart
parent 383beafdef
commit ae4167ddae

View file

@ -95,7 +95,9 @@ public class RecipientId implements Parcelable, Comparable<RecipientId> {
RecipientId recipientId = RecipientIdCache.INSTANCE.get(uuid, e164);
if (recipientId == null) {
recipientId = Recipient.externalPush(ApplicationDependencies.getApplication(), uuid, e164, highTrust).getId();
Recipient recipient = Recipient.externalPush(ApplicationDependencies.getApplication(), uuid, e164, highTrust);
RecipientIdCache.INSTANCE.put(recipient);
recipientId = recipient.getId();
}
return recipientId;