From 246165954c448b321d586c141a2f1ed408fe10d0 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 1 Jul 2018 23:26:43 +0000 Subject: Introduce several TODOs --- toxcore/tox.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toxcore/tox.c') 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_ return 0; } + // TODO(oxij): this feels ugly, this is needed only because m_send_custom_lossy_packet in Messenger.c + // sends both AV and custom packets despite its name and this API hides those AV packets if (data[0] <= PACKET_ID_RANGE_LOSSY_AV_END) { SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID); return 0; -- cgit v1.2.3