fix: (hopefully) unread bubbles on iOS

This commit is contained in:
Sorunome 2021-08-28 18:03:45 +02:00
parent edf0d97c20
commit 0332e13c6a
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

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