kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix possible threading issue in RetrieveProfileJob.
rodzic
08abe890ff
commit
a92638e897
|
@ -501,7 +501,9 @@ public class RetrieveProfileJob extends BaseJob {
|
||||||
if (recipient.getProfileKey() == null) return;
|
if (recipient.getProfileKey() == null) return;
|
||||||
if (!Util.equals(profileAvatar, recipient.getProfileAvatar())) {
|
if (!Util.equals(profileAvatar, recipient.getProfileAvatar())) {
|
||||||
SignalDatabase.runPostSuccessfulTransaction(DEDUPE_KEY_RETRIEVE_AVATAR + recipient.getId(), () -> {
|
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));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue