mirror of
https://github.com/oxen-io/session-android.git
synced 2025-05-21 19:28:22 +00:00
fix: setup storage api before starting polling
This commit is contained in:
parent
9136f1ac2d
commit
2c615ba83e
@ -123,7 +123,10 @@ class LinkDeviceActivity : BaseActionBarActivity(), ScanQRCodeWrapperFragmentDel
|
|||||||
// show a dialog or something saying do you want to skip this bit?
|
// show a dialog or something saying do you want to skip this bit?
|
||||||
}
|
}
|
||||||
// start polling and wait for updated message
|
// start polling and wait for updated message
|
||||||
ApplicationContext.getInstance(this@LinkDeviceActivity).startPollingIfNeeded()
|
ApplicationContext.getInstance(this@LinkDeviceActivity).apply {
|
||||||
|
setUpStorageAPIIfNeeded()
|
||||||
|
startPollingIfNeeded()
|
||||||
|
}
|
||||||
TextSecurePreferences.events.filter { it == TextSecurePreferences.CONFIGURATION_SYNCED }.collect {
|
TextSecurePreferences.events.filter { it == TextSecurePreferences.CONFIGURATION_SYNCED }.collect {
|
||||||
// handle we've synced
|
// handle we've synced
|
||||||
snackBar.dismiss()
|
snackBar.dismiss()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user