fix: Do not render html in unformatted messages

This commit is contained in:
Christian Kußowski 2025-12-01 14:44:37 +01:00
parent 903f7c7d15
commit 3b181291cc
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -241,7 +241,7 @@ class MessageContent extends StatelessWidget {
}
var html = AppSettings.renderHtml.value && event.isRichMessage
? event.formattedText
: event.body;
: event.body.replaceAll('<', '&lt;').replaceAll('>', '&gt;');
if (event.messageType == MessageTypes.Emote) {
html = '* $html';
}