mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 20:57:41 +00:00
retrieve user profile only during onboarding
This commit is contained in:
@@ -454,6 +454,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.
|
||||
|
@@ -82,7 +82,7 @@ class LoadingViewModel @Inject constructor(
|
||||
}
|
||||
|
||||
// start polling and wait for updated message
|
||||
ApplicationContext.getInstance(context).apply { startPollingIfNeeded() }
|
||||
ApplicationContext.getInstance(context).apply { retrieveUserProfile() }
|
||||
TextSecurePreferences.events.filter { it == TextSecurePreferences.CONFIGURATION_SYNCED }.collect {
|
||||
// handle we've synced
|
||||
skipJob.cancel()
|
||||
|
Reference in New Issue
Block a user