From 52e9e9d31c35bcceb05df6508ea3807d278d5c6f Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Wed, 6 Dec 2017 10:18:12 +0100 Subject: [PATCH] [CNContact] fix filtered list --- Classes/ContactsListView.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/ContactsListView.m b/Classes/ContactsListView.m index ada962c54..7966f3c90 100644 --- a/Classes/ContactsListView.m +++ b/Classes/ContactsListView.m @@ -158,6 +158,8 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)changeView:(ContactsCategory)view { CGRect frame = _selectedButtonImage.frame; if (view == ContactsAll && !allButton.selected) { + //REQUIRED TO RELOAD WITH FILTER + [LinphoneManager.instance setContactsUpdated:TRUE]; frame.origin.x = allButton.frame.origin.x; [ContactSelection setSipFilter:nil]; [ContactSelection enableEmailFilter:FALSE]; @@ -165,14 +167,14 @@ static UICompositeViewDescription *compositeDescription = nil; linphoneButton.selected = FALSE; [tableController loadData]; } else if (view == ContactsLinphone && !linphoneButton.selected) { + //REQUIRED TO RELOAD WITH FILTER + [LinphoneManager.instance setContactsUpdated:TRUE]; frame.origin.x = linphoneButton.frame.origin.x; [ContactSelection setSipFilter:LinphoneManager.instance.contactFilter]; [ContactSelection enableEmailFilter:FALSE]; linphoneButton.selected = TRUE; allButton.selected = FALSE; [tableController loadData]; - //REQUIRED TO RELOAD WITH FILTER - [LinphoneManager.instance setContactsUpdated:TRUE]; } _selectedButtonImage.frame = frame; }