π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] Preserve received favorites in Ente filter
laurenspriem526e59c774a2
diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dartindex 1804ea41d7..03e89a774a 100644--- a/mobile/apps/photos/lib/services/collections_service.dart+++ b/mobile/apps/photos/lib/services/collections_service.dart@@ -677,6 +677,12 @@ class CollectionsService {Future<List<Collection>> getCollectionForOnEnteSection() async {final bool hasFavorites = FavoritesService.instance.hasFavorites();+ final int? userID = _config.getUserID();+ bool isEmptyOwnedFavorites(Collection collection) =>+ collection.type == CollectionType.favorites &&+ userID != null &&+ collection.isOwner(userID) &&+ !hasFavorites;return orderCollectionsForAlbums(getCollectionsForUI(includedShared: true).where((collection) =>@@ -684,7 +690,7 @@ class CollectionsService {!collection.isQuickLinkCollection() &&!collection.isHidden() &&!collection.isArchived() &&- (collection.type != CollectionType.favorites || hasFavorites),+ !isEmptyOwnedFavorites(collection),),);}