Signed-off-by: Dante Issaias <dante.issaias@gmail.com>
This commit is contained in:
Dante Issaias 2019-07-30 13:57:04 +01:00
parent d0cff219aa
commit 2763fbb496
No known key found for this signature in database
GPG Key ID: F84A3BA787019A68
2 changed files with 4 additions and 4 deletions

View File

@ -29,5 +29,5 @@ interface MessageContent {


fun MessageContent?.isReply(): Boolean {
return this?.relatesTo?.inReplyTo != null
}
return this?.relatesTo?.inReplyTo?.eventId != null
}

View File

@ -21,5 +21,5 @@ import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class ReplyToContent(
@Json(name = "event_id") val eventId: String
)
@Json(name = "event_id") val eventId: String? = null
)