1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-14 05:33:03 +01:00

re-init AV for unblocked contacts

This commit is contained in:
jfreegman 2018-10-20 02:56:37 -04:00
parent c4a11f8dc7
commit b7d67c1d86
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -494,7 +494,7 @@ void friendlist_onFriendAdded(ToxWindow *self, Tox *m, uint32_t num, bool sort)
}
}
/* puts blocked friend back in friendlist. fnum is new friend number, bnum is blocked number */
/* Puts blocked friend back in friendlist. fnum is new friend number, bnum is blocked number. */
static void friendlist_add_blocked(Tox *m, uint32_t fnum, uint32_t bnum)
{
realloc_friends(Friends.max_idx + 1);
@ -526,6 +526,9 @@ static void friendlist_add_blocked(Tox *m, uint32_t fnum, uint32_t bnum)
sort_blocklist_index();
sort_friendlist_index();
#ifdef AUDIO
init_friend_AV(i);
#endif
return;
}
}