From ed3b0368627a10a093c18f9da0d5d859aebdaa63 Mon Sep 17 00:00:00 2001 From: alek900 Date: Sun, 11 Aug 2013 23:10:12 +0200 Subject: [PATCH] Send our current status and name to friend that just came online. Our username and status might have changed while our friend was offline. --- core/Messenger.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/Messenger.c b/core/Messenger.c index 24797d7a..92c83b9b 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -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);