mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-30 13:18:28 +00:00
Always include ourselves in optimistic profile fetches.
This commit is contained in:
parent
f182be2d79
commit
f2b10c0ba8
@ -137,7 +137,6 @@ public class ApplicationContext extends MultiDexApplication implements DefaultLi
|
||||
NotificationChannels.create(this);
|
||||
RefreshPreKeysJob.scheduleIfNecessary();
|
||||
StorageSyncHelper.scheduleRoutineSync();
|
||||
RetrieveProfileJob.enqueueRoutineFetchIfNecessary(this);
|
||||
RegistrationUtil.maybeMarkRegistrationComplete(this);
|
||||
ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
|
||||
|
||||
@ -155,6 +154,7 @@ public class ApplicationContext extends MultiDexApplication implements DefaultLi
|
||||
Log.i(TAG, "App is now visible.");
|
||||
FeatureFlags.refreshIfNecessary();
|
||||
ApplicationDependencies.getRecipientCache().warmUp();
|
||||
RetrieveProfileJob.enqueueRoutineFetchIfNecessary(this);
|
||||
executePendingContactSync();
|
||||
KeyCachingService.onAppForegrounded(this);
|
||||
ApplicationDependencies.getFrameRateTracker().begin();
|
||||
|
@ -181,6 +181,8 @@ public class RetrieveProfileJob extends BaseJob {
|
||||
current - TimeUnit.DAYS.toMillis(1),
|
||||
50);
|
||||
|
||||
ids.add(Recipient.self().getId());
|
||||
|
||||
if (ids.size() > 0) {
|
||||
Log.i(TAG, "Optimistically refreshing " + ids.size() + " eligible recipient(s).");
|
||||
enqueue(new HashSet<>(ids));
|
||||
|
Loading…
x
Reference in New Issue
Block a user