π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor(photos): clarify non-hidden collection lookup
ashilkn474febb47771
diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dartindex 51d1d7f375..c72bb26343 100644--- a/mobile/apps/photos/lib/services/collections_service.dart+++ b/mobile/apps/photos/lib/services/collections_service.dart@@ -327,11 +327,11 @@ class CollectionsService {return sharedCollections;}- /// Returns IDs of visible shared collections containing [uploadedFileID].+ /// Returns IDs of non-hidden shared collections containing [uploadedFileID].////// Use this to scope social content that may be rendered in the UI without/// constructing a list of collection objects on the view path.- Future<List<int>> getVisibleSharedCollectionIDsForFile(+ Future<List<int>> getNonHiddenSharedCollectionIDsForFile(int uploadedFileID,) async {final collectionIDs = await _filesDB.getAllCollectionIDsOfFile(diff --git a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dartindex 41cb2dd46d..d1b9f77686 100644--- a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart+++ b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart@@ -123,7 +123,7 @@ class _FileSocialOverlayState extends State<FileSocialOverlay> {try {final collectionIDs = await CollectionsService.instance- .getVisibleSharedCollectionIDsForFile(fileID);+ .getNonHiddenSharedCollectionIDsForFile(fileID);if (!_isCurrentLoad(fileID, generation)) return;if (collectionIDs.isEmpty) {