Commit c4b68e7e authored by jehan's avatar jehan
Browse files

no longer issue presence subscription when only_when_registered = true but no...

no longer issue presence subscription when only_when_registered = true but no proxy config configured.
parent da123102
......@@ -1073,7 +1073,8 @@ void linphone_friend_list_update_subscriptions(LinphoneFriendList *list) {
if (address)
cfg = linphone_core_lookup_known_proxy(list->lc, address);
only_when_registered = linphone_core_should_subscribe_friends_only_when_registered(list->lc);
should_send_list_subscribe = (!only_when_registered || !cfg || cfg->state == LinphoneRegistrationOk);
//in case of only_when_registered, proxy config is mandatory to send subscribes. Otherwise, unexpected subscribtion can be issued using default contact address even if no account is configured yet.
should_send_list_subscribe = (!only_when_registered || (cfg && cfg->state == LinphoneRegistrationOk));
}
if (address != NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment