Add comment for history

This commit is contained in:
Benoit Marty 2020-09-01 22:52:16 +02:00 committed by Benoit Marty
parent 484fd61706
commit 9389cfe7a3
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ internal class MarkdownParser @Inject constructor(
return if (isFormattedTextPertinent(text, cleanHtmlText)) {
// According to https://matrix.org/docs/spec/client_server/latest#m-room-message-msgtypes:
// The plain text version of the HTML should be provided in the body.
// But it caused too many problems so it has been removed in #2002
TextContent(text, cleanHtmlText.trim())
} else {
TextContent(text)