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:
@ -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;
|
||||
|
Reference in New Issue
Block a user