π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
move the collection.type == CollectionType.favorites check before isEmptyCollection check to handle the case where favourite collection is empty
Aman Raj Singh Mouryade2924630459
diff --git a/mobile/lib/ui/viewer/actions/album_selection_action_widget.dart b/mobile/lib/ui/viewer/actions/album_selection_action_widget.dartindex f75b8358ba..3dbc5af928 100644--- a/mobile/lib/ui/viewer/actions/album_selection_action_widget.dart+++ b/mobile/lib/ui/viewer/actions/album_selection_action_widget.dart@@ -174,6 +174,9 @@ class _AlbumSelectionActionWidgetStatefinal List errors = [];for (final collection in widget.selectedAlbums.albums) {+ if (collection.type == CollectionType.favorites) {+ continue;+ }count = await FilesDB.instance.collectionFileCount(collection.id);final bool isEmptyCollection = count == 0;if (isEmptyCollection) {@@ -183,8 +186,6 @@ class _AlbumSelectionActionWidgetState_logger.warning("failed to trash collection", e, s);errors.add(e);}- } else if (collection.type == CollectionType.favorites) {- continue;} else {nonEmptyCollection.add(collection);}