From 86a73f9909b35abcbdaefded2aceee29c149cf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Tue, 2 Dec 2025 09:20:32 +0100 Subject: [PATCH] chore: Follow up html tag rendering --- lib/pages/chat/events/html_message.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/events/html_message.dart b/lib/pages/chat/events/html_message.dart index fcf1dd2c4..f6cb99003 100644 --- a/lib/pages/chat/events/html_message.dart +++ b/lib/pages/chat/events/html_message.dart @@ -86,10 +86,10 @@ class HtmlMessage extends StatelessWidget { 'rt', 'html', 'body', - // Workaround for https://github.com/krille-chan/fluffychat/issues/507 - 'tg-forward', }; + static const Set ignoredHtmlTags = {'mx-reply'}; + /// We add line breaks before these tags: static const Set blockHtmlTags = { 'p', @@ -170,6 +170,8 @@ class HtmlMessage extends StatelessWidget { ); } + if (ignoredHtmlTags.contains(node.localName)) return const TextSpan(); + switch (node.localName) { case 'br': return const TextSpan(text: '\n');