Fix issue: reply to e2e event does not contain the base message

This commit is contained in:
Benoit Marty 2019-07-04 12:52:43 +02:00
parent 9d0c50907c
commit 8fa5e63b07
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ internal class LocalEchoEventFactory @Inject constructor(private val credentials
// </blockquote>
// </mx-reply>
// This is where the reply goes.
val body = bodyForReply(eventReplied.content.toModel<MessageContent>())
val body = bodyForReply(eventReplied.getClearContent().toModel<MessageContent>())
val replyFallbackTemplateFormatted = """
<mx-reply><blockquote><a href="%s">${stringProvider.getString(R.string.message_reply_to_prefix)}</a><a href="%s">%s</a><br />%s</blockquote></mx-reply>%s
""".trimIndent().format(permalink, userLink, userId, body.second ?: body.first, replyText)