minor design tweaks

This commit is contained in:
Christian Pauly 2020-02-07 19:44:16 +01:00
commit e0893d3bfc
6 changed files with 17 additions and 12 deletions

View file

@ -208,7 +208,10 @@ extension LocalizedBody on Event {
if (withSenderNamePrefix &&
this.type == EventTypes.Message &&
textOnlyMessageTypes.contains(this.messageType)) {
localizedBody = "$senderName: $localizedBody";
final String senderNameOrYou = this.senderId == room.client.userID
? I18n.of(context).you
: senderName;
localizedBody = "$senderNameOrYou: $localizedBody";
}
// Hide quotes