mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 20:23:19 +00:00
Fix possible threading issue in RetrieveProfileJob.
This commit is contained in:
@@ -501,7 +501,9 @@ public class RetrieveProfileJob extends BaseJob {
|
||||
if (recipient.getProfileKey() == null) return;
|
||||
if (!Util.equals(profileAvatar, recipient.getProfileAvatar())) {
|
||||
SignalDatabase.runPostSuccessfulTransaction(DEDUPE_KEY_RETRIEVE_AVATAR + recipient.getId(), () -> {
|
||||
ApplicationDependencies.getJobManager().add(new RetrieveProfileAvatarJob(recipient, profileAvatar));
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
ApplicationDependencies.getJobManager().add(new RetrieveProfileAvatarJob(recipient, profileAvatar));
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user