minor design tweaks
This commit is contained in:
parent
e497de5934
commit
e0893d3bfc
6 changed files with 17 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue