summaryrefslogtreecommitdiff
path: root/toxcore/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/group.c')
-rw-r--r--toxcore/group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/group.c b/toxcore/group.c
index 30f241ad..543b1f0a 100644
--- a/toxcore/group.c
+++ b/toxcore/group.c
@@ -744,7 +744,7 @@ int add_groupchat(Group_Chats *g_c, uint8_t type)
744 g->identifier[0] = type; 744 g->identifier[0] = type;
745 g->peer_number = 0; /* Founder is peer 0. */ 745 g->peer_number = 0; /* Founder is peer 0. */
746 memcpy(g->real_pk, nc_get_self_public_key(g_c->m->net_crypto), CRYPTO_PUBLIC_KEY_SIZE); 746 memcpy(g->real_pk, nc_get_self_public_key(g_c->m->net_crypto), CRYPTO_PUBLIC_KEY_SIZE);
747 int peer_index = addpeer(g_c, groupnumber, g->real_pk, g_c->m->dht->self_public_key, 0, NULL, false); 747 int peer_index = addpeer(g_c, groupnumber, g->real_pk, dht_get_self_public_key(g_c->m->dht), 0, NULL, false);
748 748
749 if (peer_index == -1) { 749 if (peer_index == -1) {
750 return -1; 750 return -1;