kopia lustrzana https://github.com/ryukoposting/Signal-Android
Always include ourselves in optimistic profile fetches.
rodzic
f182be2d79
commit
f2b10c0ba8
|
@ -137,7 +137,6 @@ public class ApplicationContext extends MultiDexApplication implements DefaultLi
|
||||||
NotificationChannels.create(this);
|
NotificationChannels.create(this);
|
||||||
RefreshPreKeysJob.scheduleIfNecessary();
|
RefreshPreKeysJob.scheduleIfNecessary();
|
||||||
StorageSyncHelper.scheduleRoutineSync();
|
StorageSyncHelper.scheduleRoutineSync();
|
||||||
RetrieveProfileJob.enqueueRoutineFetchIfNecessary(this);
|
|
||||||
RegistrationUtil.maybeMarkRegistrationComplete(this);
|
RegistrationUtil.maybeMarkRegistrationComplete(this);
|
||||||
ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
|
ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
|
||||||
|
|
||||||
|
@ -155,6 +154,7 @@ public class ApplicationContext extends MultiDexApplication implements DefaultLi
|
||||||
Log.i(TAG, "App is now visible.");
|
Log.i(TAG, "App is now visible.");
|
||||||
FeatureFlags.refreshIfNecessary();
|
FeatureFlags.refreshIfNecessary();
|
||||||
ApplicationDependencies.getRecipientCache().warmUp();
|
ApplicationDependencies.getRecipientCache().warmUp();
|
||||||
|
RetrieveProfileJob.enqueueRoutineFetchIfNecessary(this);
|
||||||
executePendingContactSync();
|
executePendingContactSync();
|
||||||
KeyCachingService.onAppForegrounded(this);
|
KeyCachingService.onAppForegrounded(this);
|
||||||
ApplicationDependencies.getFrameRateTracker().begin();
|
ApplicationDependencies.getFrameRateTracker().begin();
|
||||||
|
|
|
@ -181,6 +181,8 @@ public class RetrieveProfileJob extends BaseJob {
|
||||||
current - TimeUnit.DAYS.toMillis(1),
|
current - TimeUnit.DAYS.toMillis(1),
|
||||||
50);
|
50);
|
||||||
|
|
||||||
|
ids.add(Recipient.self().getId());
|
||||||
|
|
||||||
if (ids.size() > 0) {
|
if (ids.size() > 0) {
|
||||||
Log.i(TAG, "Optimistically refreshing " + ids.size() + " eligible recipient(s).");
|
Log.i(TAG, "Optimistically refreshing " + ids.size() + " eligible recipient(s).");
|
||||||
enqueue(new HashSet<>(ids));
|
enqueue(new HashSet<>(ids));
|
||||||
|
|
Ładowanie…
Reference in New Issue