Send our current status and name to friend that just came online.

Our username and status might have changed while our friend was offline.
This commit is contained in:
alek900 2013-08-11 23:10:12 +02:00
parent b5d6c22b7b
commit ed3b036862

View File

@ -571,6 +571,9 @@ static void doFriends(void)
break;
case 3: /* Connection is established */
set_friend_status(i, FRIEND_ONLINE);
friendlist[i].name_sent = 0;
friendlist[i].userstatus_sent = 0;
friendlist[i].statusmessage_sent = 0;
break;
case 4:
crypto_kill(friendlist[i].crypt_connection_id);