Skip to content

Commit

Permalink
Fix quality
Browse files Browse the repository at this point in the history
  • Loading branch information
ganfra committed Dec 21, 2023
1 parent 1ab61a8 commit e83768a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e83768a

Please sign in to comment.