From f9ca8f35bc621774773fabdda7ec311ae5614c83 Mon Sep 17 00:00:00 2001 From: ganfra Date: Wed, 23 Jan 2019 16:25:51 +0100 Subject: [PATCH] Fix MessageFileContent crash (no filename) --- .../api/session/room/model/message/MessageFileContent.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/MessageFileContent.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/MessageFileContent.kt index 9e542569..45556b68 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/MessageFileContent.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/message/MessageFileContent.kt @@ -7,7 +7,7 @@ import com.squareup.moshi.JsonClass data class MessageFileContent( @Json(name = "msgtype") override val type: String, @Json(name = "body") override val body: String, - @Json(name = "filename") val filename: String, + @Json(name = "filename") val filename: String? = null, @Json(name = "info") val info: FileInfo, @Json(name = "url") val url: String? = null ) : MessageContent \ No newline at end of file