Skip to content

Commit

Permalink
Quick bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 authored and AndyScherzinger committed Oct 4, 2023
1 parent 7cc0a83 commit 4e0dc89
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 4e0dc89

Please sign in to comment.