Show archived albums under on ente section

This commit is contained in:
Neeraj Gupta 2023-02-27 09:39:43 +05:30
parent 3660bda9f9
commit a73c183f2f
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -85,11 +85,9 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
final List<CollectionWithThumbnail> collectionsWithThumbnail =
await CollectionsService.instance.getCollectionsWithThumbnails();
// Remove uncategorized collection and archived collections
// Remove uncategorized collection
collectionsWithThumbnail.removeWhere(
(t) =>
t.collection.type == CollectionType.uncategorized ||
t.collection.isArchived(),
(t) => t.collection.type == CollectionType.uncategorized,
);
final ListMatch<CollectionWithThumbnail> favMathResult =
collectionsWithThumbnail.splitMatch(