Recipient lookup should happen as caller specifices.

..rather than always synchronously.

Fixes #3447
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-06-22 18:01:54 -07:00
parent 2fb9806f36
commit 9fc02c8ce1

View File

@ -73,7 +73,7 @@ public class RecipientProvider {
List<Recipient> recipientList = new LinkedList<>(); List<Recipient> recipientList = new LinkedList<>();
for (long recipientId : recipientIds) { for (long recipientId : recipientIds) {
recipientList.add(getRecipient(context, recipientId, false)); recipientList.add(getRecipient(context, recipientId, asynchronous));
} }
if (asynchronous) cachedRecipients = new Recipients(recipientList, getRecipientsPreferencesAsync(context, recipientIds)); if (asynchronous) cachedRecipients = new Recipients(recipientList, getRecipientsPreferencesAsync(context, recipientIds));