Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Remove hidden or ignored people from person selection screens (Reassign me & Link contact to person)

ashilknb2a21084daac
diff --git a/mobile/lib/ui/viewer/people/person_selection_action_widgets.dart b/mobile/lib/ui/viewer/people/person_selection_action_widgets.dart
index acaf6021e6..124de6a568 100644
--- a/mobile/lib/ui/viewer/people/person_selection_action_widgets.dart
+++ b/mobile/lib/ui/viewer/people/person_selection_action_widgets.dart
@@ -56,7 +56,8 @@ class _LinkContactToPersonSelectionPageState
PersonService.instance.getPersons().then((persons) async {
final List<PersonEntityWithThumbnailFile> result = [];
for (final person in persons) {
- if (person.data.email != null && person.data.email!.isNotEmpty) {
+ if ((person.data.email != null && person.data.email!.isNotEmpty) ||
+ (person.data.isHidden || person.data.isIgnored)) {
continue;
}
final file = await PersonService.instance.getRecentFileOfPerson(person);
@@ -223,7 +224,8 @@ class _ReassignMeSelectionPageState extends State<ReassignMeSelectionPage> {
PersonService.instance.getPersons().then((persons) async {
final List<PersonEntityWithThumbnailFile> result = [];
for (final person in persons) {
- if (person.data.email != null && person.data.email!.isNotEmpty) {
+ if ((person.data.email != null && person.data.email!.isNotEmpty) ||
+ (person.data.isHidden || person.data.isIgnored)) {
continue;
}
final file = await PersonService.instance.getRecentFileOfPerson(person);