Skip to content

Commit

Permalink
refactor: Display two lines on new messages
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Nov 3, 2024
1 parent 6b4ed7b commit 972c58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/chat_list/chat_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 972c58b

Please sign in to comment.