From 9224fcabfae9722d7fe0b181b6f3ceb5ffb74ac0 Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 1 Jul 2019 15:10:12 +0200 Subject: [PATCH] Fix #253 / Image with no mimetype in info --- .../matrix/android/api/session/room/model/message/ImageInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/ImageInfo.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/ImageInfo.kt index 513a436627..69e88e052c 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/ImageInfo.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/ImageInfo.kt @@ -21,7 +21,7 @@ import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) data class ImageInfo( - @Json(name = "mimetype") val mimeType: String, + @Json(name = "mimetype") val mimeType: String?, @Json(name = "w") val width: Int = 0, @Json(name = "h") val height: Int = 0, @Json(name = "size") val size: Int = 0,