Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Clarify Uncategorized ensure helper

ashil-pilot438a344223b3
diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dart
index 3567b7c265..0d3426243d 100644
--- a/mobile/apps/photos/lib/services/collections_service.dart
+++ b/mobile/apps/photos/lib/services/collections_service.dart
@@ -151,7 +151,7 @@ class CollectionsService {
watch.log("remote fetch collections ${fetchedCollections.length}");
if (fetchedCollections.isEmpty) {
- await _ensureUncategorizedCollection();
+ await _ensureUncategorizedCollectionExists();
return;
}
final updatedCollections = <Collection>[];
@@ -211,7 +211,7 @@ class CollectionsService {
);
}
- await _ensureUncategorizedCollection();
+ await _ensureUncategorizedCollectionExists();
}
void clearCache() {
@@ -557,7 +557,7 @@ class CollectionsService {
return _createUncategorizedCollection();
}
- Future<void> _ensureUncategorizedCollection() async {
+ Future<void> _ensureUncategorizedCollectionExists() async {
try {
await getUncategorizedCollection();
} catch (e, s) {