mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:17:43 +00:00
Merge remote-tracking branch 'ry/poller-fix' into on-3
This commit is contained in:
@@ -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.
|
||||
|
@@ -52,7 +52,7 @@ class LoadAccountManager @Inject constructor(
|
||||
setHasViewedSeed(true)
|
||||
}
|
||||
|
||||
ApplicationContext.getInstance(context).apply { startPollingIfNeeded() }
|
||||
ApplicationContext.getInstance(context).retrieveUserProfile()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user