Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Fix discovery section reload condition

Neeraj Guptaf36cc9ec067a
diff --git a/mobile/lib/services/location_service.dart b/mobile/lib/services/location_service.dart
index 5a54664813..8aeff1b7e5 100644
--- a/mobile/lib/services/location_service.dart
+++ b/mobile/lib/services/location_service.dart
@@ -68,7 +68,8 @@ class LocationService {
List<EnteFile> allFiles,
String query,
) async {
- if (allFiles.isEmpty && query.isEmpty) {
+ // check if the cities where not loaded when discovery section was loaded
+ if (allFiles.isNotEmpty && _cities.isEmpty && query.isEmpty) {
reloadLocationDiscoverySection = true;
}
final EnteWatch w = EnteWatch("cities_search")..start();