Better senderprefix
This commit is contained in:
parent
a4dfed9361
commit
fac2377ca2
|
@ -79,11 +79,12 @@ class MessageContent extends StatelessWidget {
|
|||
case EventTypes.Text:
|
||||
case EventTypes.Reply:
|
||||
case EventTypes.Notice:
|
||||
final String senderPrefix = textOnly
|
||||
? event.senderId == Matrix.of(context).client.userID
|
||||
? "You: "
|
||||
: "${event.sender.calcDisplayname()}: "
|
||||
: "";
|
||||
final String senderPrefix =
|
||||
textOnly && event.senderId != event.room.directChatMatrixID
|
||||
? event.senderId == Matrix.of(context).client.userID
|
||||
? "You: "
|
||||
: "${event.sender.calcDisplayname()}: "
|
||||
: "";
|
||||
return Text(
|
||||
senderPrefix + event.getBody(),
|
||||
maxLines: maxLines,
|
||||
|
|
Loading…
Reference in a new issue