mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Write to RecipientIdCache on cache miss.
This commit is contained in:
committed by
Alex Hart
parent
383beafdef
commit
ae4167ddae
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user