Fix reply fallback prefix
Plain text reply fallback should be prefixed with "> " not ">" (as per spec). Signed-off-by: Stuart Mumford <stuart@cadair.com>
This commit is contained in:
parent
6d01a570fd
commit
90fad23493
|
@ -306,12 +306,12 @@ internal class LocalEchoEventFactory @Inject constructor(private val credentials
|
|||
|
||||
private fun buildReplyFallback(body: TextContent, originalSenderId: String?, newBodyText: String): String {
|
||||
val lines = body.text.split("\n")
|
||||
val replyFallback = StringBuffer("><$originalSenderId>")
|
||||
val replyFallback = StringBuffer("> <$originalSenderId>")
|
||||
lines.forEachIndexed { index, s ->
|
||||
if (index == 0) {
|
||||
replyFallback.append(" $s")
|
||||
} else {
|
||||
replyFallback.append("\n>$s")
|
||||
replyFallback.append("\n> $s")
|
||||
}
|
||||
}
|
||||
replyFallback.append("\n\n").append(newBodyText)
|
||||
|
|
Loading…
Reference in New Issue