Write to RecipientIdCache on cache miss.

fork-5.53.8
Greyson Parrelli 2021-07-07 12:19:04 -04:00 zatwierdzone przez Alex Hart
rodzic 383beafdef
commit ae4167ddae
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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