kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix problem with prefetched recipient details
Don't use a cached recipient if we have a prefetched recipient detail object and the cached recipient is still in progress and without a name // FREEBIEfork-5.53.8
rodzic
79f8cf8e35
commit
efc4a5ab9d
|
@ -72,7 +72,8 @@ class RecipientProvider {
|
|||
|
||||
@NonNull Recipient getRecipient(Context context, Address address, Optional<RecipientSettings> settings, Optional<GroupRecord> groupRecord, boolean asynchronous) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue