summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-07-01 23:26:43 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-19 19:24:00 +0000
commit246165954c448b321d586c141a2f1ed408fe10d0 (patch)
tree0200298ac740b7c956e24c1b84059eeab533e8f7 /toxcore/tox.c
parent669bdf23ee695faa53630b30611f2cbd002c923c (diff)
Introduce several TODOs
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c2
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;