Skip to content

Commit

Permalink
Group chats are starting to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
irungentoo committed Sep 26, 2014
1 parent d5d8481 commit 8b35d19
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 49 deletions.
4 changes: 2 additions & 2 deletions testing/nTox.c
Expand Up @@ -1001,11 +1001,11 @@ void print_help(char *prog_name)
puts(" -f keyfile [Optional] Specify a keyfile to read from and write to.");
}

void print_invite(Tox *m, int friendnumber, const uint8_t *group_public_key, void *userdata)
void print_invite(Tox *m, int friendnumber, const uint8_t *data, uint16_t length, void *userdata)
{
char msg[256];
sprintf(msg, "[i] received group chat invite from: %u, auto accepting and joining. group number: %u", friendnumber,
tox_join_groupchat(m, friendnumber, group_public_key));
tox_join_groupchat(m, friendnumber, data, length));
new_lines(msg);
}

Expand Down

0 comments on commit 8b35d19

Please sign in to comment.