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

make friend add fail if friend is in the block list

This commit is contained in:
jfreegman
2019-11-16 01:55:47 -05:00
parent 4b5a9abbd4
commit 127f9462e0
3 changed files with 33 additions and 1 deletions

View File

@ -93,4 +93,11 @@ Tox_Connection get_friend_connection_status(uint32_t friendnumber);
/* sorts friendlist_index first by connection status then alphabetically */
void sort_friendlist_index(void);
/*
* Returns true if friend associated with `public_key` is in the block list.
*
* `public_key` must be at least TOX_PUBLIC_KEY_SIZE bytes.
*/
bool friend_is_blocked(const char *public_key);
#endif /* end of include guard: FRIENDLIST_H */