@ -72,7 +72,8 @@ class RecipientProvider {
@NonNull Recipient getRecipient ( Context context , Address address , Optional < RecipientSettings > settings , Optional < GroupRecord > groupRecord , boolean asynchronous ) {
@NonNull Recipient getRecipient ( Context context , Address address , Optional < RecipientSettings > settings , Optional < GroupRecord > groupRecord , boolean asynchronous ) {
Recipient cachedRecipient = recipientCache . get ( address ) ;
Recipient cachedRecipient = recipientCache . get ( address ) ;
if ( cachedRecipient ! = null & & ! cachedRecipient . isStale ( ) & & ( asynchronous | | ! cachedRecipient . isResolving ( ) ) ) {
if ( cachedRecipient ! = null & & ! cachedRecipient . isStale ( ) & & ( asynchronous | | ! cachedRecipient . isResolving ( ) ) & & ( ( ! groupRecord . isPresent ( ) & & ! settings . isPresent ( ) ) | | ! cachedRecipient . isResolving ( ) | | cachedRecipient . getName ( ) ! = null ) ) {
return cachedRecipient ;
return cachedRecipient ;
}
}