diff --git a/lib/pages/new_group/widget/contacts_selection_list.dart b/lib/pages/new_group/widget/contacts_selection_list.dart index b5fd9b48c0..f41d06ad83 100644 --- a/lib/pages/new_group/widget/contacts_selection_list.dart +++ b/lib/pages/new_group/widget/contacts_selection_list.dart @@ -40,11 +40,9 @@ class ContactsSelectionList extends StatelessWidget { valueListenable: presentationContactNotifier, builder: (context, state, child) { final isSearchModeEnable = textEditingController.text.isNotEmpty; - + final recentContact = presentationRecentContactNotifier.value.isEmpty; return state.fold( (failure) { - final recentContact = - presentationRecentContactNotifier.value.isEmpty; final textControllerIsEmpty = textEditingController.text.isEmpty; if (failure is GetPresentationContactsEmpty || failure is GetPresentationContactsFailure) { @@ -70,7 +68,8 @@ class ContactsSelectionList extends StatelessWidget { ); } - if (success is PresentationExternalContactSuccess) { + if (success is PresentationExternalContactSuccess && + recentContact) { return SliverToBoxAdapter( child: ContactItem( contact: success.contact,