reload fastaddressBook after reseting core

This commit is contained in:
Benjamin Reis 2016-11-18 10:47:05 +01:00
parent 86686a0ead
commit b3d59f85c2
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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);