1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 05:56:46 +02:00

Not done yet.

This commit is contained in:
mannol
2014-05-16 20:00:01 +02:00
parent 1d6a6efb81
commit 0c834b60f5
5 changed files with 258 additions and 215 deletions

View File

@ -558,9 +558,9 @@ void disable_chatwin(int32_t f_num)
}
#ifdef _SUPPORT_AUDIO
static void friendlist_onAv(ToxWindow *self, ToxAv *av)
static void friendlist_onAv(ToxWindow *self, ToxAv *av, int call_index)
{
int id = toxav_get_peer_id(av, 0);
int id = toxav_get_peer_id(av, call_index, 0);
/*id++;*/
if ( id != ErrorInternal && id >= max_friends_index)
@ -622,6 +622,8 @@ ToxWindow new_friendlist(void)
ret.onEnd = &friendlist_onAv;
ret.onRequestTimeout = &friendlist_onAv;
ret.onPeerTimeout = &friendlist_onAv;
ret.call_index = -1;
#endif /* _SUPPORT_AUDIO */
strcpy(ret.name, "friends");