From 2b60affd9a6ab7a27b34b1d51eb0323df32b4a6b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 12 Jan 2021 15:23:14 +0100 Subject: [PATCH] Remove useless param --- .../src/main/java/im/vector/app/core/extensions/Session.kt | 3 +-- .../java/im/vector/app/core/services/VectorSyncService.kt | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/vector/src/main/java/im/vector/app/core/extensions/Session.kt b/vector/src/main/java/im/vector/app/core/extensions/Session.kt index b8cdd83324..10dade70ea 100644 --- a/vector/src/main/java/im/vector/app/core/extensions/Session.kt +++ b/vector/src/main/java/im/vector/app/core/extensions/Session.kt @@ -40,8 +40,7 @@ fun Session.startSyncing(context: Context) { // initial sync is done as a service so it can continue below app lifecycle VectorSyncService.newOneShotIntent( context = applicationContext, - sessionId = sessionId, - syncTimeoutSeconds = 0 + sessionId = sessionId ) .let { try { diff --git a/vector/src/main/java/im/vector/app/core/services/VectorSyncService.kt b/vector/src/main/java/im/vector/app/core/services/VectorSyncService.kt index c9b72708f8..65b81be384 100644 --- a/vector/src/main/java/im/vector/app/core/services/VectorSyncService.kt +++ b/vector/src/main/java/im/vector/app/core/services/VectorSyncService.kt @@ -42,11 +42,10 @@ class VectorSyncService : SyncService() { companion object { fun newOneShotIntent(context: Context, - sessionId: String, - syncTimeoutSeconds: Int): Intent { + sessionId: String): Intent { return Intent(context, VectorSyncService::class.java).also { it.putExtra(EXTRA_SESSION_ID, sessionId) - it.putExtra(EXTRA_TIMEOUT_SECONDS, syncTimeoutSeconds) + it.putExtra(EXTRA_TIMEOUT_SECONDS, 0) it.putExtra(EXTRA_PERIODIC, false) } }