mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
Better senderprefix
This commit is contained in:
parent
a4dfed9361
commit
fac2377ca2
@ -79,11 +79,12 @@ class MessageContent extends StatelessWidget {
|
|||||||
case EventTypes.Text:
|
case EventTypes.Text:
|
||||||
case EventTypes.Reply:
|
case EventTypes.Reply:
|
||||||
case EventTypes.Notice:
|
case EventTypes.Notice:
|
||||||
final String senderPrefix = textOnly
|
final String senderPrefix =
|
||||||
? event.senderId == Matrix.of(context).client.userID
|
textOnly && event.senderId != event.room.directChatMatrixID
|
||||||
? "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,
|
||||||
|
Loading…
Reference in New Issue
Block a user