Better display of error messages

This commit is contained in:
Christian Pauly 2020-02-18 09:17:39 +01:00
parent f262c4d53f
commit bd3052ff86
2 changed files with 1 additions and 13 deletions

View File

@ -128,18 +128,6 @@ class MessageContent extends StatelessWidget {
),
);
case MessageTypes.BadEncrypted:
return Row(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Icon(Icons.lock),
Text(
event.getLocalizedBody(context),
style: TextStyle(
color: textColor,
),
),
],
);
case MessageTypes.Text:
case MessageTypes.Reply:
case MessageTypes.Location:

View File

@ -195,7 +195,7 @@ extension LocalizedBody on Event {
break;
case MessageTypes.BadEncrypted:
localizedBody =
I18n.of(context).couldNotDecryptMessage + ": " + body;
"🔒 " + I18n.of(context).couldNotDecryptMessage + ": " + body;
break;
case MessageTypes.Text:
case MessageTypes.Notice: