fix: Small stuff

This commit is contained in:
Sorunome
2020-09-21 09:44:13 +02:00
committed by Christian Pauly
parent b2240513c5
commit 9d3f272c2a
3 changed files with 4 additions and 5 deletions

View File

@ -43,8 +43,7 @@ class MessageContent extends StatelessWidget {
case MessageTypes.Emote:
if (Matrix.of(context).renderHtml &&
!event.redacted &&
event.content['format'] == 'org.matrix.custom.html' &&
event.content['formatted_body'] is String) {
event.isRichMessage) {
String html = event.content['formatted_body'];
if (event.messageType == MessageTypes.Emote) {
html = '* $html';