diff options
Diffstat (limited to 'toxcore/group_chats.c')
-rw-r--r-- | toxcore/group_chats.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 4581eb38..1e5309ad 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c | |||
@@ -184,7 +184,7 @@ static int send_groupchatpacket(Group_Chat *chat, IP_Port ip_port, uint8_t *publ | |||
184 | 184 | ||
185 | uint8_t packet[MAX_DATA_SIZE]; | 185 | uint8_t packet[MAX_DATA_SIZE]; |
186 | int len = create_request(chat->self_public_key, chat->self_secret_key, packet, public_key, data, length, request_id); | 186 | int len = create_request(chat->self_public_key, chat->self_secret_key, packet, public_key, data, length, request_id); |
187 | packet[0] = 48; | 187 | packet[0] = NET_PACKET_GROUP_CHATS; |
188 | 188 | ||
189 | if (len == -1) | 189 | if (len == -1) |
190 | return -1; | 190 | return -1; |
@@ -581,3 +581,10 @@ void chat_bootstrap(Group_Chat *chat, IP_Port ip_port, uint8_t *client_id) | |||
581 | { | 581 | { |
582 | send_getnodes(chat, ip_port, addpeer(chat, client_id)); | 582 | send_getnodes(chat, ip_port, addpeer(chat, client_id)); |
583 | } | 583 | } |
584 | |||
585 | void chat_bootstrap_nonlazy(Group_Chat *chat, IP_Port ip_port, uint8_t *client_id) | ||
586 | { | ||
587 | send_getnodes(chat, ip_port, addpeer(chat, client_id)); | ||
588 | add_closepeer(chat, client_id, ip_port); | ||
589 | } | ||
590 | |||