diff --git a/src/group_commands.c b/src/group_commands.c index f4a6c17..f2892d6 100644 --- a/src/group_commands.c +++ b/src/group_commands.c @@ -70,7 +70,7 @@ void cmd_chatid(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[ { char chatid[TOX_GROUP_CHAT_ID_SIZE * 2 + 1] = {0}; char chat_public_key[TOX_GROUP_CHAT_ID_SIZE]; - tox_group_get_invite_key(m, self->num, (uint8_t *) chat_public_key); + tox_group_get_chat_id(m, self->num, (uint8_t *) chat_public_key); size_t i;