diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index b0b14d8bc..38027be37 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -92,11 +92,6 @@ } [instance.fastAddressBook fetchContactsInBackGroundThread]; instance.fastAddressBook.needToUpdate = FALSE; - const MSList *lists = linphone_core_get_friends_lists(LC); - while (lists) { - linphone_friend_list_update_subscriptions(lists->data); - lists = lists->next; - } } LinphoneCall *call = linphone_core_get_current_call(LC); diff --git a/Classes/LinphoneCoreSettingsStore.m b/Classes/LinphoneCoreSettingsStore.m index ed0c457bc..9345e23f9 100644 --- a/Classes/LinphoneCoreSettingsStore.m +++ b/Classes/LinphoneCoreSettingsStore.m @@ -926,11 +926,7 @@ } [lm lpConfigSetInt:[self integerForKey:@"use_rls_presence"] forKey:@"use_rls_presence"]; - const MSList *lists = linphone_core_get_friends_lists(LC); - while (lists) { - linphone_friend_list_enable_subscriptions(lists->data, [self integerForKey:@"use_rls_presence"]); - lists = lists->next; - } + linphone_core_enable_friend_list_subscription(LC, [self integerForKey:@"use_rls_presence"]); BOOL firstloginview = [self boolForKey:@"enable_first_login_view_preference"]; [lm lpConfigSetInt:firstloginview forKey:@"enable_first_login_view_preference"]; diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 147819568..b93b82f68 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -2352,11 +2352,12 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { [self iterate]; } + /*linphone_core_enable_friend_list_subscription(LC, enabled && [LinphoneManager.instance lpConfigBoolForKey:@"use_rls_presence"]); const MSList *lists = linphone_core_get_friends_lists(LC); while (lists) { linphone_friend_list_enable_subscriptions(lists->data, enabled && [LinphoneManager.instance lpConfigBoolForKey:@"use_rls_presence"]); lists = lists->next; - } + }*/ } - (BOOL)enterBackgroundMode {