diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-18 18:35:28 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-18 18:35:28 -0500 |
commit | 99ae23813b47cc5198a210c4ea8da54d8a817829 (patch) | |
tree | 8ed427536060671022841e1f60fff661e2f7e6ee /toxcore/Messenger.c | |
parent | 8d1ef66892f06b2a1f564b9cc95cca6387763762 (diff) |
Some optimizations and fixes.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 3bc9f211..2f270fb6 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -683,6 +683,8 @@ static void check_friend_connectionstatus(Messenger *m, int friendnumber, uint8_ | |||
683 | const uint8_t was_online = m->friendlist[friendnumber].status == FRIEND_ONLINE; | 683 | const uint8_t was_online = m->friendlist[friendnumber].status == FRIEND_ONLINE; |
684 | const uint8_t is_online = status == FRIEND_ONLINE; | 684 | const uint8_t is_online = status == FRIEND_ONLINE; |
685 | 685 | ||
686 | onion_set_friend_online(m->onion_c, m->friendlist[friendnumber].onion_friendnum, is_online); | ||
687 | |||
686 | if (is_online != was_online) { | 688 | if (is_online != was_online) { |
687 | if (was_online) | 689 | if (was_online) |
688 | break_files(m, friendnumber); | 690 | break_files(m, friendnumber); |