chore: Fix spaces

This commit is contained in:
Christian Pauly 2021-12-26 09:29:29 +01:00
parent 1962adb25c
commit 9df055a741

View File

@ -309,10 +309,12 @@ class _ChatListViewBodyState extends State<_ChatListViewBody> {
controller: widget.controller.scrollController, controller: widget.controller.scrollController,
itemCount: rooms.length + (displayStoriesHeader ? 1 : 0), itemCount: rooms.length + (displayStoriesHeader ? 1 : 0),
itemBuilder: (BuildContext context, int i) { itemBuilder: (BuildContext context, int i) {
if (i == 0 && displayStoriesHeader) { if (displayStoriesHeader) {
return const StoriesHeader(); if (i == 0) {
return const StoriesHeader();
}
i--;
} }
i--;
return ChatListItem( return ChatListItem(
rooms[i], rooms[i],
selected: widget.controller.selectedRoomIds.contains(rooms[i].id), selected: widget.controller.selectedRoomIds.contains(rooms[i].id),