2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2025-04-02 14:06:51 +02:00

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

fix: Correctly size the unread bubble in the room list

Closes 

See merge request 
This commit is contained in:
Krille Fear 2021-08-07 17:29:31 +00:00
commit e001e0de26

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