1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 06:16:45 +02:00

fix bug where contacts would appear online twice in a row

This commit is contained in:
Jfreegman
2015-03-31 18:39:42 -04:00
parent 4780cfeafc
commit eaea68c33e
2 changed files with 6 additions and 3 deletions

View File

@ -332,7 +332,7 @@ static void friendlist_onConnectionChange(ToxWindow *self, Tox *m, uint32_t num,
if (connection_status == TOX_CONNECTION_NONE)
--Friends.num_online;
else
else if (Friends.list[num].connection_status == TOX_CONNECTION_NONE)
++Friends.num_online;
Friends.list[num].connection_status = connection_status;