From 3ed9d9a4dba82db276aa6a7f9bd553ad19c296d3 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Mon, 13 Nov 2023 21:35:45 +0100 Subject: Ensure name information is provided Signed-off-by: TheJackiMonster --- src/gnunet_chat_group_intern.c | 8 +++++++- src/gnunet_chat_lib.c | 4 +++- src/gnunet_chat_util.c | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/gnunet_chat_group_intern.c b/src/gnunet_chat_group_intern.c index d598c85..39cb7e7 100644 --- a/src/gnunet_chat_group_intern.c +++ b/src/gnunet_chat_group_intern.c @@ -61,5 +61,11 @@ search_group_by_topic(void *cls, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST))) return; - GNUNET_MESSENGER_enter_room(group->handle->messenger, door, key); + struct GNUNET_MESSENGER_Room *room = GNUNET_MESSENGER_enter_room( + group->handle->messenger, + door, + key + ); + + handle_send_room_name(group->handle, room); } diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 4d29aa6..0dc660d 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c @@ -1863,8 +1863,10 @@ GNUNET_CHAT_invitation_accept (struct GNUNET_CHAT_Invitation *invitation) struct GNUNET_PeerIdentity door; GNUNET_PEER_resolve(invitation->door, &door); - GNUNET_MESSENGER_enter_room( + struct GNUNET_MESSENGER_Room *room = GNUNET_MESSENGER_enter_room( invitation->context->handle->messenger, &door, &(invitation->key) ); + + handle_send_room_name(invitation->context->handle, room); } diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c index bdc5e18..0faa331 100644 --- a/src/gnunet_chat_util.c +++ b/src/gnunet_chat_util.c @@ -24,7 +24,6 @@ #include "gnunet_chat_util.h" - void util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, struct GNUNET_ShortHashCode *shorthash) -- cgit v1.2.3