Update filtered executor in LiveRecipientCache.

This commit is contained in:
Greyson Parrelli
2021-08-23 14:56:55 -04:00
committed by Alex Hart
parent 29489a664e
commit b18c3ec1a9

View File

@@ -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