Skip to content

armgit / ente

Public Imported from GitHub
0

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

remove contact feature flag

AmanRajSinghMourya7e3d55ecd948
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart
index d0c01f454f..1929f87d1c 100644
--- a/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart
@@ -11,8 +11,7 @@ import "package:photos/models/search/generic_search_result.dart";
import "package:photos/models/search/recent_searches.dart";
import "package:photos/models/search/search_constants.dart";
import "package:photos/models/search/search_types.dart";
-import "package:photos/service_locator.dart"
- show flagService, isLocalGalleryMode;
+import "package:photos/service_locator.dart" show isLocalGalleryMode;
import "package:photos/services/search_service.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/common/loading_widget.dart";
@@ -33,7 +32,7 @@ class _ContactsSectionLoaderState extends State<ContactsSectionLoader> {
@override
Widget build(BuildContext context) {
- if (isLocalGalleryMode || !flagService.enableContact) {
+ if (isLocalGalleryMode) {
return const SizedBox.shrink();
}
_contactsFuture ??= SearchService.instance.getAllContactsSearchResults(
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
index cfe61e1fea..c382a5b9e9 100644
--- a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
@@ -117,8 +117,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
final sectionResultsByType = snapshot.data!.sectionResults;
final hasAnySearchableFiles =
snapshot.data!.hasAnySearchableFiles;
- final shouldRenderContacts =
- !isLocalGalleryMode && flagService.enableContact;
+ final shouldRenderContacts = !isLocalGalleryMode;
if (!hasAnySearchableFiles &&
sectionResultsByType.every((element) => element.isEmpty) &&
!shouldRenderContacts) {