Remove useless param
This commit is contained in:
parent
e771b21ea3
commit
2b60affd9a
|
@ -40,8 +40,7 @@ fun Session.startSyncing(context: Context) {
|
||||||
// initial sync is done as a service so it can continue below app lifecycle
|
// initial sync is done as a service so it can continue below app lifecycle
|
||||||
VectorSyncService.newOneShotIntent(
|
VectorSyncService.newOneShotIntent(
|
||||||
context = applicationContext,
|
context = applicationContext,
|
||||||
sessionId = sessionId,
|
sessionId = sessionId
|
||||||
syncTimeoutSeconds = 0
|
|
||||||
)
|
)
|
||||||
.let {
|
.let {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -42,11 +42,10 @@ class VectorSyncService : SyncService() {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
fun newOneShotIntent(context: Context,
|
fun newOneShotIntent(context: Context,
|
||||||
sessionId: String,
|
sessionId: String): Intent {
|
||||||
syncTimeoutSeconds: Int): Intent {
|
|
||||||
return Intent(context, VectorSyncService::class.java).also {
|
return Intent(context, VectorSyncService::class.java).also {
|
||||||
it.putExtra(EXTRA_SESSION_ID, sessionId)
|
it.putExtra(EXTRA_SESSION_ID, sessionId)
|
||||||
it.putExtra(EXTRA_TIMEOUT_SECONDS, syncTimeoutSeconds)
|
it.putExtra(EXTRA_TIMEOUT_SECONDS, 0)
|
||||||
it.putExtra(EXTRA_PERIODIC, false)
|
it.putExtra(EXTRA_PERIODIC, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue