From b18c3ec1a95372b4efc885dd0e1e391bbbff26b4 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 23 Aug 2021 14:56:55 -0400 Subject: [PATCH] Update filtered executor in LiveRecipientCache. --- .../thoughtcrime/securesms/recipients/LiveRecipientCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java b/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java index 1ef9267094..a934a48abd 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java +++ b/app/src/main/java/org/thoughtcrime/securesms/recipients/LiveRecipientCache.java @@ -59,7 +59,7 @@ public final class LiveRecipientCache { this.localRecipientId = new AtomicReference<>(null); this.unknown = new LiveRecipient(context, Recipient.UNKNOWN); this.db = DatabaseFactory.getInstance(context).getRawDatabase(); - this.resolveExecutor = new FilteredExecutor(SignalExecutors.BOUNDED, () -> !db.isDbLockedByCurrentThread()); + this.resolveExecutor = new FilteredExecutor(SignalExecutors.BOUNDED, () -> !db.inTransaction()); } @AnyThread