forked from GitHub-Mirror/riotX-android
Fix / unwanted auto-mardown when trailing space
This commit is contained in:
parent
6cf24cc43b
commit
85e850bcde
@ -70,7 +70,7 @@ internal class LocalEchoEventFactory @Inject constructor(private val credentials
|
||||
}
|
||||
|
||||
private fun isFormattedTextPertinent(text: String, htmlText: String?) =
|
||||
text != htmlText && htmlText != "<p>$text</p>\n"
|
||||
text != htmlText && htmlText != "<p>${text.trim()}</p>\n"
|
||||
|
||||
fun createFormattedTextEvent(roomId: String, text: String, formattedText: String): Event {
|
||||
val content = MessageTextContent(
|
||||
|
Loading…
Reference in New Issue
Block a user