Fix quality

This commit is contained in:
ganfra 2023-12-21 16:14:58 +01:00 committed by Jorge Martín
parent 320aae1430
commit 2ada4c8491
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ internal class LocalEchoEventFactory @Inject constructor(
// As we always supply formatted body for replies we should force the MarkdownParser to produce html.
val newBodyFormatted = replyTextFormatted ?: markdownParser.parse(replyText, force = true, advanced = autoMarkdown).takeFormatted()
// Body of the original message may not have formatted version, so may also have to convert to html.
val formattedBodyOfRepliedEvent = bodyOfRepliedEvent.formattedText ?: markdownParser.parse(bodyOfRepliedEvent.text, force = true, advanced = autoMarkdown).takeFormatted()
val formattedBodyOfRepliedEvent =
bodyOfRepliedEvent.formattedText ?: markdownParser.parse(text = bodyOfRepliedEvent.text, force = true, advanced = autoMarkdown).takeFormatted()
val replyFormatted = buildFormattedReply(
permalink,
userLink,