Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: don't select first two people by default

Prateek Sunal68efbc2bed7e
diff --git a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
index 33c671f515..d78eb4b9ba 100644
--- a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
+++ b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
@@ -399,14 +399,6 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {
results.removeWhere(
(element) => element.params[kPersonParamID] == null,
);
- if (widget.selectedPeople?.personIds.isEmpty ?? false) {
- widget.selectedPeople!.select(
- results
- .take(2)
- .map((e) => e.params[kPersonParamID] as String)
- .toSet(),
- );
- }
}
_isLoaded = true;
return results;