forked from GitHub-Mirror/riotX-android
commit
c450849cc3
@ -306,12 +306,12 @@ internal class LocalEchoEventFactory @Inject constructor(private val credentials
|
|||||||
|
|
||||||
private fun buildReplyFallback(body: TextContent, originalSenderId: String?, newBodyText: String): String {
|
private fun buildReplyFallback(body: TextContent, originalSenderId: String?, newBodyText: String): String {
|
||||||
val lines = body.text.split("\n")
|
val lines = body.text.split("\n")
|
||||||
val replyFallback = StringBuffer("><$originalSenderId>")
|
val replyFallback = StringBuffer("> <$originalSenderId>")
|
||||||
lines.forEachIndexed { index, s ->
|
lines.forEachIndexed { index, s ->
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
replyFallback.append(" $s")
|
replyFallback.append(" $s")
|
||||||
} else {
|
} else {
|
||||||
replyFallback.append("\n>$s")
|
replyFallback.append("\n> $s")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
replyFallback.append("\n\n").append(newBodyText)
|
replyFallback.append("\n\n").append(newBodyText)
|
||||||
|
Loading…
Reference in New Issue
Block a user