feat: Rate limit streams so that large accounts have a smoother UI

This commit is contained in:
Sorunome 2021-07-31 12:31:31 +02:00
commit 7e1e4e4844
4 changed files with 62 additions and 6 deletions

View file

@ -289,7 +289,9 @@ class ChatListItem extends StatelessWidget {
curve: Curves.bounceInOut,
padding: EdgeInsets.symmetric(horizontal: 7),
height: unreadBubbleSize,
width: room.notificationCount == 0 && !room.isUnread ? 0 : null,
width: room.notificationCount == 0 && !room.isUnread
? 0
: unreadBubbleSize,
decoration: BoxDecoration(
color: room.highlightCount > 0
? Colors.red