diff --git a/Classes/Contact.m b/Classes/Contact.m index cd33657f3..0437ef971 100644 --- a/Classes/Contact.m +++ b/Classes/Contact.m @@ -58,6 +58,8 @@ #endif } if (_friend) { + linphone_friend_enable_subscribes(_friend, FALSE); + linphone_friend_set_inc_subscribe_policy(_friend, LinphoneSPDeny); linphone_core_add_friend(LC, _friend); } } diff --git a/Classes/ContactDetailsView.m b/Classes/ContactDetailsView.m index 89ee16740..71ecc55b2 100644 --- a/Classes/ContactDetailsView.m +++ b/Classes/ContactDetailsView.m @@ -121,6 +121,8 @@ - (void)newContact:(NSString *)address { [self selectContact:[[Contact alloc] initWithPerson:ABPersonCreate()] andReload:NO]; [self addCurrentContactContactField:address]; + // force to restart server subscription to add new contact into the list + [LinphoneManager.instance becomeActive]; } - (void)editContact:(Contact *)acontact { diff --git a/submodules/belcard b/submodules/belcard index aef96d7dc..7ed3a4fbb 160000 --- a/submodules/belcard +++ b/submodules/belcard @@ -1 +1 @@ -Subproject commit aef96d7dc07a1ab2563ecdc225e20a9ae8d67547 +Subproject commit 7ed3a4fbbacf8159865de7def1e3ca891b0f70ac diff --git a/submodules/belr b/submodules/belr index 253af89ec..7de31a427 160000 --- a/submodules/belr +++ b/submodules/belr @@ -1 +1 @@ -Subproject commit 253af89ec2ef34c50349235f6c18ca496aed7dc8 +Subproject commit 7de31a427206079fd715dc6f427b675471e65fd7 diff --git a/submodules/linphone b/submodules/linphone index e6032177a..268de5e75 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit e6032177a82a4c0c8c8f88b60d42a7e7e5c56e33 +Subproject commit 268de5e752d8db39896cc3fbcf3772b79b1972db