On invalidate, only notify friend with an already known presence model

This commit is contained in:
Jehan Monnier 2016-02-05 17:10:38 +01:00
parent 79b104fbbc
commit 7fca3be419

View file

@ -252,9 +252,9 @@ void linphone_friend_invalidate_subscription(LinphoneFriend *lf){
/* Notify application that we no longer know the presence activity */
if (lf->presence != NULL) {
linphone_presence_model_unref(lf->presence);
lf->presence = linphone_presence_model_new_with_activity(LinphonePresenceActivityOffline,"unknown activity");
linphone_core_notify_notify_presence_received(lc,lf);
}
lf->presence = linphone_presence_model_new_with_activity(LinphonePresenceActivityOffline,"unknown activity");
linphone_core_notify_notify_presence_received(lc,lf);
lf->initial_subscribes_sent=FALSE;
}