mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add an index specifically for improving thread count perf.
This commit is contained in:
committed by
Nicholas Tinsley
parent
bc1c8032c1
commit
494b2c6786
@@ -373,10 +373,8 @@ public final class MessageRequestRepository {
|
||||
|
||||
@WorkerThread
|
||||
private boolean isLegacyThread(@NonNull Recipient recipient) {
|
||||
Context context = ApplicationDependencies.getApplication();
|
||||
Long threadId = SignalDatabase.threads().getThreadIdFor(recipient.getId());
|
||||
Long threadId = SignalDatabase.threads().getThreadIdFor(recipient.getId());
|
||||
|
||||
return threadId != null &&
|
||||
(RecipientUtil.hasSentMessageInThread(threadId) || RecipientUtil.isPreMessageRequestThread(threadId));
|
||||
return threadId != null && RecipientUtil.hasSentMessageInThread(threadId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user