Skip to content

Commit

Permalink
Quick bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
  • Loading branch information
rapterjet2004 committed Oct 3, 2023
1 parent 703f2c0 commit 1ece50d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class MessageUtils(val context: Context) {
} else if (message.renderMarkdown == false) {
SpannableString(message.message)
} else {
enrichChatMessageText(context, message.message!!, incoming, viewThemeUtils)
val newMessage = message.message!!.replace("\n", " \n", false)
enrichChatMessageText(context, newMessage, incoming, viewThemeUtils)
}
}

Expand Down Expand Up @@ -106,6 +107,7 @@ class MessageUtils(val context: Context) {
return processedMessageText
}

@Suppress("NestedBlockDepth", "LongParameterList")
private fun processMessageParameters(
themingContext: Context,
viewThemeUtils: ViewThemeUtils,
Expand Down

0 comments on commit 1ece50d

Please sign in to comment.