From d24ce27903036ffd801c1f019d7605a9961f35f8 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 8 Jul 2019 13:52:25 +0200 Subject: [PATCH] Add missing call to contentUploadStateTracker.setFailure --- .../android/internal/session/content/UploadContentWorker.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/content/UploadContentWorker.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/content/UploadContentWorker.kt index fd6b15f335..37f57e4bfc 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/content/UploadContentWorker.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/content/UploadContentWorker.kt @@ -73,6 +73,7 @@ internal class UploadContentWorker(context: Context, params: WorkerParameters) : File(attachment.path) } catch (e: Exception) { Timber.e(e) + contentUploadStateTracker.setFailure(params.event.eventId) return Result.success( WorkerParamsFactory.toData(params.copy( lastFailureMessage = e.localizedMessage