From 74c2f77b974635e127087819681f183329bb2b48 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Thu, 15 Sep 2016 11:51:42 +0200 Subject: [PATCH 1/3] [Presence] disable p2p presence on friend creation on first launch --- Classes/Contact.m | 2 ++ 1 file changed, 2 insertions(+) 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); } } From cef2b0267746292ff1d14f9281a331bcdd1ad6fb Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Thu, 15 Sep 2016 12:36:20 +0200 Subject: [PATCH 2/3] [Presence] refresh presence with enablepublish on new contact created --- Classes/ContactDetailsView.m | 2 ++ 1 file changed, 2 insertions(+) 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 { From 3648e0417740a671ba3a83a70e9114181ebf54a5 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Fri, 16 Sep 2016 09:12:06 +0200 Subject: [PATCH 3/3] fix compilation issues --- submodules/belcard | 2 +- submodules/belr | 2 +- submodules/linphone | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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