libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit 3ed9d9a4dba82db276aa6a7f9bd553ad19c296d3
parent 42f54e73aa1e8dbc05a12657f97b3dfecb67ba8f
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Mon, 13 Nov 2023 21:35:45 +0100

Ensure name information is provided

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
Msrc/gnunet_chat_group_intern.c | 8+++++++-
Msrc/gnunet_chat_lib.c | 4+++-
Msrc/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 @@ -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 @@ -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 @@ -24,7 +24,6 @@ #include "gnunet_chat_util.h" - void util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, struct GNUNET_ShortHashCode *shorthash)