Merge branch 'soru/unread-messages-badge' into 'main'

fix: Correctly size the unread bubble in the room list

Closes #494

See merge request famedly/fluffychat!475
onboarding
Krille Fear 4 years ago
commit 2aa2912647

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

Loading…
Cancel
Save