mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Do not check equality of presence statuses because it does not work if the presence model of linphone core has been changed instead of a new one created.
This commit is contained in:
parent
db9d58cf45
commit
e53bd7f811
1 changed files with 10 additions and 9 deletions
|
|
@ -3702,15 +3702,16 @@ void linphone_core_set_presence_model(LinphoneCore *lc, int minutes_away, const
|
|||
lc->alt_contact=NULL;
|
||||
}
|
||||
if (contact) lc->alt_contact=ms_strdup(contact);
|
||||
if (!linphone_presence_model_equals(lc->presence_model,presence)){
|
||||
linphone_core_notify_all_friends(lc,presence);
|
||||
/*
|
||||
Improve the use of all LINPHONE_STATUS available.
|
||||
!TODO Do not mix "presence status" with "answer status code"..
|
||||
Use correct parameter to follow sip_if_match/sip_etag.
|
||||
*/
|
||||
linphone_core_send_publish(lc,presence);
|
||||
}
|
||||
|
||||
// TODO: Check that the presence timestamp is newer than the last sent presence.
|
||||
linphone_core_notify_all_friends(lc,presence);
|
||||
/*
|
||||
Improve the use of all LINPHONE_STATUS available.
|
||||
!TODO Do not mix "presence status" with "answer status code"..
|
||||
Use correct parameter to follow sip_if_match/sip_etag.
|
||||
*/
|
||||
linphone_core_send_publish(lc,presence);
|
||||
|
||||
if ((lc->presence_model != NULL) && (lc->presence_model != presence)) {
|
||||
linphone_presence_model_delete(lc->presence_model);
|
||||
lc->presence_model = presence;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue