Tell A/V that friend is offline when friend is deleted.

This commit is contained in:
irungentoo 2015-07-11 23:10:04 -04:00
parent 7225725bbf
commit 6f5d1a3b8e
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -381,6 +381,9 @@ int m_delfriend(Messenger *m, int32_t friendnumber)
if (friend_not_valid(m, friendnumber)) if (friend_not_valid(m, friendnumber))
return -1; return -1;
if (m->friend_connectionstatuschange_internal)
m->friend_connectionstatuschange_internal(m, friendnumber, 0, m->friend_connectionstatuschange_internal_userdata);
clear_receipts(m, friendnumber); clear_receipts(m, friendnumber);
remove_request_received(&(m->fr), m->friendlist[friendnumber].real_pk); remove_request_received(&(m->fr), m->friendlist[friendnumber].real_pk);
friend_connection_callbacks(m->fr_c, m->friendlist[friendnumber].friendcon_id, MESSENGER_CALLBACK_INDEX, 0, 0, 0, 0, 0); friend_connection_callbacks(m->fr_c, m->friendlist[friendnumber].friendcon_id, MESSENGER_CALLBACK_INDEX, 0, 0, 0, 0, 0);