From 972c58b5ad0571adf6e7017e50ad61e5657959b6 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 3 Nov 2024 11:24:24 +0100 Subject: [PATCH] refactor: Display two lines on new messages --- lib/pages/chat_list/chat_list_item.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 114b9cd68..d7ce69873 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -339,7 +339,8 @@ class ChatListItem extends StatelessWidget { : snapshot.data ?? L10n.of(context).emptyChat, softWrap: false, - maxLines: room.hasNewMessages ? 2 : 1, + maxLines: + room.notificationCount >= 1 ? 2 : 1, overflow: TextOverflow.ellipsis, style: TextStyle( fontWeight: unread || room.hasNewMessages