From b3d59f85c24793de076062d8f4605314cf445acb Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Fri, 18 Nov 2016 10:47:05 +0100 Subject: [PATCH] reload fastaddressBook after reseting core --- Classes/LinphoneAppDelegate.m | 1 + Classes/LinphoneManager.m | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index bcc659796..a34015421 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -768,6 +768,7 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response linphone_core_set_provisioning_uri(LC, [configURL UTF8String]); [LinphoneManager.instance destroyLinphoneCore]; [LinphoneManager.instance startLinphoneCore]; + [LinphoneManager.instance.fastAddressBook reload]; } #pragma mark - Prevent ImagePickerView from rotating diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 19108ce7d..086311433 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1879,6 +1879,8 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat - (void)resetLinphoneCore { [self destroyLinphoneCore]; [self createLinphoneCore]; + // reload friends + [self.fastAddressBook reload]; // reset network state to trigger a new network connectivity assessment linphone_core_set_network_reachable(theLinphoneCore, FALSE);