From 00eb637e51d728706c3ee1e3686f6aa50866a4d9 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Tue, 4 Aug 2015 17:40:19 -0700 Subject: [PATCH] stop sync resolution of recipients on ui thread Closes #3885 // FREEBIE --- src/org/thoughtcrime/securesms/database/MmsDatabase.java | 6 +++--- src/org/thoughtcrime/securesms/database/SmsDatabase.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/MmsDatabase.java b/src/org/thoughtcrime/securesms/database/MmsDatabase.java index 6c434bf1d8..0ac06fa02e 100644 --- a/src/org/thoughtcrime/securesms/database/MmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/MmsDatabase.java @@ -1099,13 +1099,13 @@ public class MmsDatabase extends MessagingDatabase { private Recipients getRecipientsFor(String address) { if (TextUtils.isEmpty(address) || address.equals("insert-address-token")) { - return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), false); + return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), true); } - Recipients recipients = RecipientFactory.getRecipientsFromString(context, address, false); + Recipients recipients = RecipientFactory.getRecipientsFromString(context, address, true); if (recipients == null || recipients.isEmpty()) { - return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), false); + return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), true); } return recipients; diff --git a/src/org/thoughtcrime/securesms/database/SmsDatabase.java b/src/org/thoughtcrime/securesms/database/SmsDatabase.java index 716b38cd88..2295ab865f 100644 --- a/src/org/thoughtcrime/securesms/database/SmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/SmsDatabase.java @@ -608,16 +608,16 @@ public class SmsDatabase extends MessagingDatabase { private Recipients getRecipientsFor(String address) { if (address != null) { - Recipients recipients = RecipientFactory.getRecipientsFromString(context, address, false); + Recipients recipients = RecipientFactory.getRecipientsFromString(context, address, true); if (recipients == null || recipients.isEmpty()) { - return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), false); + return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), true); } return recipients; } else { Log.w(TAG, "getRecipientsFor() address is null"); - return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), false); + return RecipientFactory.getRecipientsFor(context, Recipient.getUnknownRecipient(), true); } }