Merge remote-tracking branch 'ry/poller-fix' into on-3

This commit is contained in:
bemusementpark
2024-07-05 16:55:18 +09:30
4 changed files with 139 additions and 57 deletions

View File

@@ -453,6 +453,13 @@ public class ApplicationContext extends Application implements DefaultLifecycleO
ClosedGroupPollerV2.getShared().start();
}
public void retrieveUserProfile() {
setUpPollingIfNeeded();
if (poller != null) {
poller.retrieveUserProfile();
}
}
private void resubmitProfilePictureIfNeeded() {
// Files expire on the file server after a while, so we simply re-upload the user's profile picture
// at a certain interval to ensure it's always available.

View File

@@ -52,7 +52,7 @@ class LoadAccountManager @Inject constructor(
setHasViewedSeed(true)
}
ApplicationContext.getInstance(context).apply { startPollingIfNeeded() }
ApplicationContext.getInstance(context).retrieveUserProfile()
}
}
}