From a1ef168063eb36c7fffb98570987c8c5494dc4f7 Mon Sep 17 00:00:00 2001 From: stcb <21@stcb.cc> Date: Thu, 31 Oct 2024 09:55:09 +0200 Subject: [PATCH] Clean contact_state --- lib/features/contacts/contact_state.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/features/contacts/contact_state.dart b/lib/features/contacts/contact_state.dart index 710cb5b..ed29bdc 100644 --- a/lib/features/contacts/contact_state.dart +++ b/lib/features/contacts/contact_state.dart @@ -35,11 +35,6 @@ class _ContactStateState extends State { List contacts = await _contactService.fetchContacts(); contacts = contacts.where((contact) => contact.phones.isNotEmpty).toList(); contacts.sort((a, b) => a.displayName.compareTo(b.displayName)); - // contacts.sort((a, b) { - // String aName = a.displayName.isNotEmpty ? a.displayName : '􏿿'; - // String bName = b.displayName.isNotEmpty ? b.displayName : '􏿿'; - // return aName.compareTo(bName); - // }); setState(() { _contacts = contacts; _loading = false;