mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 20:23:25 +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)
|
||||
{
|
||||
int id = toxav_get_peer_id(av, 0);
|
||||
|
||||
id++;
|
||||
if ( id >= max_friends_index)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user