From 125c2624208ee6412dce2e9d8b6a6f48a8d146e4 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 8 May 2020 12:04:29 +0200 Subject: [PATCH] Fix room sender prefix --- lib/components/list_items/chat_list_item.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/components/list_items/chat_list_item.dart b/lib/components/list_items/chat_list_item.dart index 1ea31cc..7bb2102 100644 --- a/lib/components/list_items/chat_list_item.dart +++ b/lib/components/list_items/chat_list_item.dart @@ -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(