diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index c8c0042f..d27e3ae5 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -381,6 +381,9 @@ int m_delfriend(Messenger *m, int32_t friendnumber) if (friend_not_valid(m, friendnumber)) return -1; + if (m->friend_connectionstatuschange_internal) + m->friend_connectionstatuschange_internal(m, friendnumber, 0, m->friend_connectionstatuschange_internal_userdata); + clear_receipts(m, friendnumber); 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);