fix: Correctly size the unread bubble in the room list

This commit is contained in:
Sorunome 2021-08-07 17:15:45 +02:00
commit cd32b61995

View file

@ -291,7 +291,9 @@ class ChatListItem extends StatelessWidget {
height: unreadBubbleSize, height: unreadBubbleSize,
width: room.notificationCount == 0 && !room.isUnread width: room.notificationCount == 0 && !room.isUnread
? 0 ? 0
: unreadBubbleSize, : (unreadBubbleSize - 10) *
room.notificationCount.toString().length +
10,
decoration: BoxDecoration( decoration: BoxDecoration(
color: room.highlightCount > 0 color: room.highlightCount > 0
? Colors.red ? Colors.red