From 80d9b64e5afa3d65ee5fc1e857e2575be6d62380 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 24 Jan 2022 22:49:34 +0100 Subject: [PATCH] Cover also the error case. --- .../org/matrix/android/sdk/internal/session/sync/SyncTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt index c15473f627..1ee62ad774 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt @@ -207,11 +207,11 @@ internal class DefaultSyncTask @Inject constructor( } } } - syncStatisticsData.downloadInitSyncTime = SystemClock.elapsedRealtime() } else { throw syncResponse.toFailure(globalErrorReceiver) .also { Timber.tag(loggerTag.value).w("INIT_SYNC request failure: $this") } } + syncStatisticsData.downloadInitSyncTime = SystemClock.elapsedRealtime() initialSyncStatusRepository.setStep(InitialSyncStatus.STEP_DOWNLOADED) } return workingFile