mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 10:23:02 +01:00
Issue #89 workaround for a toxav_get_peer_id issue
This commit is contained in:
parent
9d50d52216
commit
a63cba645f
@ -472,7 +472,7 @@ static void friendlist_onInit(ToxWindow *self, Tox *m)
|
|||||||
static void friendlist_onAv(ToxWindow *self, ToxAv *av)
|
static void friendlist_onAv(ToxWindow *self, ToxAv *av)
|
||||||
{
|
{
|
||||||
int id = toxav_get_peer_id(av, 0);
|
int id = toxav_get_peer_id(av, 0);
|
||||||
|
id++;
|
||||||
if ( id >= max_friends_index)
|
if ( id >= max_friends_index)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user