From 24d485e752d6a24f95847af1865dd6938388746b Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 19 Jan 2016 13:56:38 +0100 Subject: [PATCH] contacts: fallback to all contacts if user has no linphone friends --- Classes/ContactsListView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/ContactsListView.m b/Classes/ContactsListView.m index fb5e35df2..881032225 100644 --- a/Classes/ContactsListView.m +++ b/Classes/ContactsListView.m @@ -111,6 +111,9 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)viewDidLoad { [super viewDidLoad]; [self changeView:ContactsLinphone]; + if ([tableController totalNumberOfItems] == 0) { + [self changeView:ContactsAll]; + } } - (void)viewWillAppear:(BOOL)animated {