mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Separate thread updates into a job and other perf improvements.
This commit is contained in:
committed by
Alex Hart
parent
db7272730e
commit
665d9e31f6
@@ -245,6 +245,10 @@ public class RecipientUtil {
|
||||
|
||||
@WorkerThread
|
||||
public static void shareProfileIfFirstSecureMessage(@NonNull Context context, @NonNull Recipient recipient) {
|
||||
if (recipient.isProfileSharing()) {
|
||||
return;
|
||||
}
|
||||
|
||||
long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdIfExistsFor(recipient.getId());
|
||||
|
||||
if (isPreMessageRequestThread(context, threadId)) {
|
||||
|
||||
Reference in New Issue
Block a user