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