Remove useless param

This commit is contained in:
Benoit Marty 2021-01-12 15:23:14 +01:00 committed by Benoit Marty
parent e771b21ea3
commit 2b60affd9a
2 changed files with 3 additions and 5 deletions

View File

@ -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 {

View File

@ -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)
} }
} }