Skip to content

armgit / ente

Public Imported from GitHub
0

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

Short circuit getCollectionIDsToExclude in offline mode

Neeraj Gupta957f7eb7cb71
diff --git a/mobile/apps/photos/lib/services/smart_memories_service.dart b/mobile/apps/photos/lib/services/smart_memories_service.dart
index e1e5d60c5c..ed98132835 100644
--- a/mobile/apps/photos/lib/services/smart_memories_service.dart
+++ b/mobile/apps/photos/lib/services/smart_memories_service.dart
@@ -1886,6 +1886,9 @@ class SmartMemoriesService {
}
Future<Set<int>> getCollectionIDsToExclude() async {
+ if (isOfflineMode) {
+ return <int>{};
+ }
final collections = CollectionsService.instance.getCollectionsForUI();
// Names of collections to exclude