Write to RecipientIdCache on cache miss.
This commit is contained in:
parent
383beafdef
commit
ae4167ddae
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ public class RecipientId implements Parcelable, Comparable<RecipientId> {
|
||||||
RecipientId recipientId = RecipientIdCache.INSTANCE.get(uuid, e164);
|
RecipientId recipientId = RecipientIdCache.INSTANCE.get(uuid, e164);
|
||||||
|
|
||||||
if (recipientId == null) {
|
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;
|
return recipientId;
|
||||||
|
|
Loading…
Add table
Reference in a new issue