[mob][photos] Make sure hidden doesn't show in naming sheet

This commit is contained in:
laurenspriem 2024-05-03 15:09:29 +05:30
parent 38a40a5ace
commit 662dc1a32b

View file

@ -289,7 +289,13 @@ class _PersonActionSheetState extends State<PersonActionSheet> {
}
}
Future<Iterable<PersonEntity>> _getPersons() async {
return PersonService.instance.getPersons();
Future<Iterable<PersonEntity>> _getPersons({
bool excludeHidden = true,
}) async {
final persons = await PersonService.instance.getPersons();
if (excludeHidden) {
persons.removeWhere((person) => person.data.isHidden);
}
return persons;
}
}