Minor fixes

This commit is contained in:
Christian Pauly 2020-01-03 10:46:34 +01:00
parent 1a364a75f3
commit 541cdec4ca
3 changed files with 8 additions and 6 deletions

View File

@ -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
final String senderPrefix = textOnly
? event.senderId == Matrix.of(context).client.userID
? "You: "
: "${event.sender.calcDisplayname()}: ";
: "${event.sender.calcDisplayname()}: "
: "";
return Text(
senderPrefix + event.getBody(),
maxLines: maxLines,

View File

@ -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:

View File

@ -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"