Fix room sender prefix

onboarding
Christian Pauly 5 years ago
parent b741782cac
commit 1a6b184e98

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

Loading…
Cancel
Save