Fix MessageFileContent crash (no filename)

This commit is contained in:
ganfra 2019-01-23 16:25:51 +01:00
parent cc4c1cf308
commit f9ca8f35bc

View File

@ -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