diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 95acfd2a..80ff42c3 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -1522,6 +1522,8 @@ bool tox_friend_send_lossy_packet(Tox *tox, uint32_t friend_number, const uint8_ | |||
1522 | return 0; | 1522 | return 0; |
1523 | } | 1523 | } |
1524 | 1524 | ||
1525 | // TODO(oxij): this feels ugly, this is needed only because m_send_custom_lossy_packet in Messenger.c | ||
1526 | // sends both AV and custom packets despite its name and this API hides those AV packets | ||
1525 | if (data[0] <= PACKET_ID_RANGE_LOSSY_AV_END) { | 1527 | if (data[0] <= PACKET_ID_RANGE_LOSSY_AV_END) { |
1526 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID); | 1528 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID); |
1527 | return 0; | 1529 | return 0; |