mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Remove useless param
This commit is contained in:
parent
e771b21ea3
commit
2b60affd9a
2 changed files with 3 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue