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

View file

@ -62,9 +62,9 @@ class ChatTime {
case 3: case 3:
return "Wednesday"; return "Wednesday";
case 4: case 4:
return "Donnerstag";
case 5:
return "Thursday"; return "Thursday";
case 5:
return "Friday";
case 6: case 6:
return "Saturday"; return "Saturday";
case 7: 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. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.1.2+3 version: 0.1.3+4
environment: environment:
sdk: ">=2.1.0 <3.0.0" sdk: ">=2.1.0 <3.0.0"