From bd3052ff868f26bee667dd9335e553f16ebac47d Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 18 Feb 2020 09:17:39 +0100 Subject: [PATCH] Better display of error messages --- lib/components/message_content.dart | 12 ------------ lib/utils/event_extension.dart | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/components/message_content.dart b/lib/components/message_content.dart index 62f0d5b..fa3c9d6 100644 --- a/lib/components/message_content.dart +++ b/lib/components/message_content.dart @@ -128,18 +128,6 @@ class MessageContent extends StatelessWidget { ), ); case MessageTypes.BadEncrypted: - return Row( - mainAxisSize: MainAxisSize.min, - children: [ - Icon(Icons.lock), - Text( - event.getLocalizedBody(context), - style: TextStyle( - color: textColor, - ), - ), - ], - ); case MessageTypes.Text: case MessageTypes.Reply: case MessageTypes.Location: diff --git a/lib/utils/event_extension.dart b/lib/utils/event_extension.dart index 35ec535..dd1e435 100644 --- a/lib/utils/event_extension.dart +++ b/lib/utils/event_extension.dart @@ -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: