From 541cdec4ca3c8091eb3e4b576e7565854e26e893 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 3 Jan 2020 10:46:34 +0100 Subject: [PATCH] Minor fixes --- lib/components/message_content.dart | 8 +++++--- lib/utils/chat_time.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/components/message_content.dart b/lib/components/message_content.dart index 25f98d7..2c637b6 100644 --- a/lib/components/message_content.dart +++ b/lib/components/message_content.dart @@ -79,9 +79,11 @@ class MessageContent extends StatelessWidget { case EventTypes.Text: case EventTypes.Reply: case EventTypes.Notice: - String senderPrefix = event.senderId == Matrix.of(context).client.userID - ? "You: " - : "${event.sender.calcDisplayname()}: "; + final String senderPrefix = textOnly + ? event.senderId == Matrix.of(context).client.userID + ? "You: " + : "${event.sender.calcDisplayname()}: " + : ""; return Text( senderPrefix + event.getBody(), maxLines: maxLines, diff --git a/lib/utils/chat_time.dart b/lib/utils/chat_time.dart index 408bb2b..2364030 100644 --- a/lib/utils/chat_time.dart +++ b/lib/utils/chat_time.dart @@ -62,9 +62,9 @@ class ChatTime { case 3: return "Wednesday"; case 4: - return "Donnerstag"; - case 5: return "Thursday"; + case 5: + return "Friday"; case 6: return "Saturday"; case 7: diff --git a/pubspec.yaml b/pubspec.yaml index e689a7f..a493353 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Chat with your friends. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.1.2+3 +version: 0.1.3+4 environment: sdk: ">=2.1.0 <3.0.0"