mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 01:45:52 +03:00
Fix / avoid newlines and ws in reply event representations
This commit is contained in:
parent
4a4c0a3da1
commit
71ea1c5f9b
1 changed files with 2 additions and 10 deletions
|
@ -231,16 +231,8 @@ internal class LocalEchoEventFactory(private val credentials: Credentials, priva
|
|||
// This is where the reply goes.
|
||||
val body = bodyForReply(eventReplied.content.toModel<MessageContent>())
|
||||
val replyFallbackTemplateFormatted = """
|
||||
<mx-reply>
|
||||
<blockquote>
|
||||
<a href="%s">${stringProvider.getString(R.string.in_reply_to)}</a>
|
||||
<a href="%s">%s</a>
|
||||
<br />
|
||||
%s
|
||||
</blockquote>
|
||||
</mx-reply>
|
||||
%s
|
||||
""".trim().format(permalink, userLink, userId, body.second ?: body.first, replyText)
|
||||
<mx-reply><blockquote><a href="%s">${stringProvider.getString(R.string.in_reply_to)}</a><a href="%s">%s</a><br />%s</blockquote></mx-reply>%s
|
||||
""".trimIndent().format(permalink, userLink, userId, body.second ?: body.first, replyText)
|
||||
//
|
||||
// > <@alice:example.org> This is the original body
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue