From 0239f79f235037777c780802195a3eeb5ac97997 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 26 May 2014 13:15:00 -0400 Subject: [PATCH] Friend status is now set right before calling the tox_callback_user_status callback. --- toxcore/Messenger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index bec3a250..8cae2914 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -857,6 +857,8 @@ static void check_friend_connectionstatus(Messenger *m, int32_t friendnumber, ui add_online_friend(m, friendnumber); } + m->friendlist[friendnumber].status = status; + if (m->friend_connectionstatuschange) m->friend_connectionstatuschange(m, friendnumber, is_online, m->friend_connectionstatuschange_userdata);