refactor: Display two lines on new messages
This commit is contained in:
parent
6b4ed7bdc8
commit
972c58b5ad
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue