Skip to content

armgit / ente

Public Imported from GitHub
0

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

Disable search if magic search is disabled

vishnukvmd1f17e892c06f
diff --git a/lib/services/semantic_search/semantic_search_service.dart b/lib/services/semantic_search/semantic_search_service.dart
index cb211213ef..57a3763849 100644
--- a/lib/services/semantic_search/semantic_search_service.dart
+++ b/lib/services/semantic_search/semantic_search_service.dart
@@ -67,7 +67,7 @@ class SemanticSearchService {
}
Future<List<EnteFile>> search(String query) async {
- if (Platform.isIOS) {
+ if (!LocalSettings.instance.hasEnabledMagicSearch()) {
return [];
}
if (_ongoingRequest == null) {