mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 23:03:27 +01:00
fixed groupchat join but
This commit is contained in:
parent
cbb23a4f75
commit
10f5627912
@ -259,7 +259,7 @@ void cmd_join(WINDOW *window, ToxWindow *prompt, Tox *m, int argc, char **argv)
|
|||||||
|
|
||||||
uint8_t *groupkey = pending_grp_requests[num];
|
uint8_t *groupkey = pending_grp_requests[num];
|
||||||
|
|
||||||
if (strlen(groupkey) != TOX_CLIENT_ID_SIZE) { /* Improve this test */
|
if (!strlen(groupkey)) {
|
||||||
wprintw(window, "No pending group chat invite with that number.\n");
|
wprintw(window, "No pending group chat invite with that number.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ uint8_t num_frnd_requests = 0;
|
|||||||
|
|
||||||
/* One group chat request slot for each friend; slot is
|
/* One group chat request slot for each friend; slot is
|
||||||
overwritten on subsequent requests by the same friend. */
|
overwritten on subsequent requests by the same friend. */
|
||||||
uint8_t pending_grp_requests[MAX_FRIENDS_NUM][TOX_CLIENT_ID_SIZE];
|
uint8_t pending_grp_requests[MAX_FRIENDS_NUM][TOX_CLIENT_ID_SIZE] = {'\0'};
|
||||||
|
|
||||||
static char prompt_buf[MAX_STR_SIZE] = {'\0'};
|
static char prompt_buf[MAX_STR_SIZE] = {'\0'};
|
||||||
static int prompt_buf_pos = 0;
|
static int prompt_buf_pos = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user