summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 9eef6157..9e9a5057 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -551,12 +551,12 @@ int tox_send_lossless_packet(const Tox *tox, int32_t friendnumber, const uint8_t
551 551
552/* Set the callback for group invites. 552/* Set the callback for group invites.
553 * 553 *
554 * Function(Tox *tox, int32_t friendnumber, uint8_t *data, uint16_t length, void *userdata) 554 * Function(Tox *tox, int32_t friendnumber, uint8_t type, uint8_t *data, uint16_t length, void *userdata)
555 * 555 *
556 * data of length is what needs to be passed to join_groupchat(). 556 * data of length is what needs to be passed to join_groupchat().
557 */ 557 */
558void tox_callback_group_invite(Tox *tox, void (*function)(Messenger *tox, int32_t, const uint8_t *, uint16_t, void *), 558void tox_callback_group_invite(Tox *tox, void (*function)(Messenger *tox, int32_t, uint8_t, const uint8_t *, uint16_t,
559 void *userdata) 559 void *), void *userdata)
560{ 560{
561 Messenger *m = tox; 561 Messenger *m = tox;
562 g_callback_group_invite(m->group_chat_object, function, userdata); 562 g_callback_group_invite(m->group_chat_object, function, userdata);
@@ -603,7 +603,7 @@ void tox_callback_group_namelist_change(Tox *tox, void (*function)(Tox *tox, int
603int tox_add_groupchat(Tox *tox) 603int tox_add_groupchat(Tox *tox)
604{ 604{
605 Messenger *m = tox; 605 Messenger *m = tox;
606 return add_groupchat(m->group_chat_object); 606 return add_groupchat(m->group_chat_object, GROUPCHAT_TYPE_TEXT);
607} 607}
608 608
609/* Delete a groupchat from the chats array. 609/* Delete a groupchat from the chats array.
@@ -648,7 +648,7 @@ int tox_invite_friend(Tox *tox, int32_t friendnumber, int groupnumber)
648int tox_join_groupchat(Tox *tox, int32_t friendnumber, const uint8_t *data, uint16_t length) 648int tox_join_groupchat(Tox *tox, int32_t friendnumber, const uint8_t *data, uint16_t length)
649{ 649{
650 Messenger *m = tox; 650 Messenger *m = tox;
651 return join_groupchat(m->group_chat_object, friendnumber, data, length); 651 return join_groupchat(m->group_chat_object, friendnumber, GROUPCHAT_TYPE_TEXT, data, length);
652} 652}
653 653
654/* send a group message 654/* send a group message