refactor: Display two lines on new messages

pull/1455/head
krille-chan 4 months ago
parent 6b4ed7bdc8
commit 972c58b5ad
No known key found for this signature in database

@ -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

Loading…
Cancel
Save