diff options
author | alek900 <alek900@gmail.com> | 2013-08-11 23:10:12 +0200 |
---|---|---|
committer | alek900 <alek900@gmail.com> | 2013-08-11 23:10:12 +0200 |
commit | ed3b0368627a10a093c18f9da0d5d859aebdaa63 (patch) | |
tree | 5107a09f54bc3977d446381a8555edb99a5fb16e /core | |
parent | b5d6c22b7b4b02a4aa692e573c09fecabfffeed4 (diff) |
Send our current status and name to friend that just came online.
Our username and status might have changed while our friend was offline.
Diffstat (limited to 'core')
-rw-r--r-- | core/Messenger.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
571 | break; | 571 | break; |
572 | case 3: /* Connection is established */ | 572 | case 3: /* Connection is established */ |
573 | set_friend_status(i, FRIEND_ONLINE); | 573 | set_friend_status(i, FRIEND_ONLINE); |
574 | friendlist[i].name_sent = 0; | ||
575 | friendlist[i].userstatus_sent = 0; | ||
576 | friendlist[i].statusmessage_sent = 0; | ||
574 | break; | 577 | break; |
575 | case 4: | 578 | case 4: |
576 | crypto_kill(friendlist[i].crypt_connection_id); | 579 | crypto_kill(friendlist[i].crypt_connection_id); |