mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
Better senderprefix
This commit is contained in:
parent
a4dfed9361
commit
fac2377ca2
@ -79,7 +79,8 @@ 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 =
|
||||||
|
textOnly && event.senderId != event.room.directChatMatrixID
|
||||||
? event.senderId == Matrix.of(context).client.userID
|
? event.senderId == Matrix.of(context).client.userID
|
||||||
? "You: "
|
? "You: "
|
||||||
: "${event.sender.calcDisplayname()}: "
|
: "${event.sender.calcDisplayname()}: "
|
||||||
|
Loading…
Reference in New Issue
Block a user