update addressbook when account linked in order to refresh phone number presence

This commit is contained in:
REIS Benjamin 2016-11-02 10:57:35 +01:00
parent 3614d6d3da
commit a8273b6e8c
4 changed files with 3 additions and 2 deletions

View file

@ -163,6 +163,7 @@ void assistant_activate_phone_number_link(LinphoneAccountCreator *creator, Linph
linphone_proxy_config_done(cfg);
}
[PhoneMainView.instance popToView:DialerView.compositeViewDescription];
[[NSNotificationCenter defaultCenter] postNotificationName:kLinphoneAddressBookUpdate object:NULL];
} else {
[thiz showErrorPopup:resp];
}

View file

@ -946,6 +946,7 @@ void assistant_activate_account(LinphoneAccountCreator *creator, LinphoneAccount
thiz.waitView.hidden = YES;
if (status == LinphoneAccountCreatorAccountActivated) {
[thiz configureProxyConfig];
[[NSNotificationCenter defaultCenter] postNotificationName:kLinphoneAddressBookUpdate object:NULL];
} else if (status == LinphoneAccountCreatorAccountAlreadyActivated) {
// in case we are actually trying to link account, let's try it now
linphone_account_creator_activate_phone_number_link(creator);

View file

@ -211,7 +211,6 @@
self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];
} else {
/* iOS7 and below */
self.voipRegistry.delegate = NULL;
if (!instance.isTesting) {
NSUInteger notifTypes =
UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge;

View file

@ -53,7 +53,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>5</string>
<string>7</string>
<key>ITSAppUsesNonExemptEncryption</key>
<true/>
<key>ITSEncryptionExportComplianceCode</key>