mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Removed unneeded conversion.
This commit is contained in:
parent
8ffa0061e9
commit
b728e10616
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ internal class MarkdownParser @Inject constructor(
|
|||
fun parse(text: String): TextContent {
|
||||
// If no special char are detected, just return plain text
|
||||
if (text.contains(mdSpecialChars).not()) {
|
||||
return TextContent(text.toString())
|
||||
return TextContent(text)
|
||||
}
|
||||
|
||||
val document = parser.parse(text)
|
||||
|
@ -56,7 +56,7 @@ internal class MarkdownParser @Inject constructor(
|
|||
val plainText = textContentRenderer.render(document)
|
||||
TextContent(plainText, cleanHtmlText.postTreatment())
|
||||
} else {
|
||||
TextContent(text.toString())
|
||||
TextContent(text)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue