mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 07:23:24 +01:00
re-init AV for unblocked contacts
This commit is contained in:
parent
c4a11f8dc7
commit
b7d67c1d86
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user