mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +03:00
Fix / unwanted auto-mardown when trailing space
This commit is contained in:
parent
6cf24cc43b
commit
85e850bcde
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ internal class LocalEchoEventFactory @Inject constructor(private val credentials
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun isFormattedTextPertinent(text: String, htmlText: String?) =
|
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 {
|
fun createFormattedTextEvent(roomId: String, text: String, formattedText: String): Event {
|
||||||
val content = MessageTextContent(
|
val content = MessageTextContent(
|
||||||
|
|
Loading…
Reference in a new issue