Fix room sender prefix

This commit is contained in:
Christian Pauly 2020-05-08 12:04:29 +02:00
parent b8c16b43d7
commit 125c262420

View File

@ -187,8 +187,11 @@ class ChatListItem extends StatelessWidget {
),
)
: Text(
room.lastEvent.getLocalizedBody(L10n.of(context),
withSenderNamePrefix: true, hideReply: true),
room.lastEvent.getLocalizedBody(
L10n.of(context),
withSenderNamePrefix: !room.isDirectChat,
hideReply: true,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(