From cffc0e890db10cba158ab65f93cb56afc7c805da Mon Sep 17 00:00:00 2001 From: Marcus Fihlon Date: Wed, 10 Apr 2024 11:59:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Hotfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Fihlon --- src/main/java/swiss/fihlon/apus/ui/view/MessageView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/swiss/fihlon/apus/ui/view/MessageView.java b/src/main/java/swiss/fihlon/apus/ui/view/MessageView.java index 427aba3..263b097 100644 --- a/src/main/java/swiss/fihlon/apus/ui/view/MessageView.java +++ b/src/main/java/swiss/fihlon/apus/ui/view/MessageView.java @@ -66,7 +66,7 @@ private Component createAvatarComponent(@NotNull final Message message) { private Component createTextComponent(@NotNull final Message message) { final String messageText = Jsoup.parse(message.html()).text(); return new Html(String.format("
%s
", - messageText.length() > MAX_LENGTH ? truncateMessageText(messageText) : message.html() + messageText.length() > MAX_LENGTH ? truncateMessageText(messageText) : messageText )); }