fix: Do not render html in unformatted messages
This commit is contained in:
parent
903f7c7d15
commit
3b181291cc
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ class MessageContent extends StatelessWidget {
|
|||
}
|
||||
var html = AppSettings.renderHtml.value && event.isRichMessage
|
||||
? event.formattedText
|
||||
: event.body;
|
||||
: event.body.replaceAll('<', '<').replaceAll('>', '>');
|
||||
if (event.messageType == MessageTypes.Emote) {
|
||||
html = '* $html';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue