diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2023-11-13 21:35:45 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2023-11-13 21:35:45 +0100 |
commit | 3ed9d9a4dba82db276aa6a7f9bd553ad19c296d3 (patch) | |
tree | 3023a0903db6e60fe1a2efb02716150bc76e7856 | |
parent | 42f54e73aa1e8dbc05a12657f97b3dfecb67ba8f (diff) | |
download | libgnunetchat-3ed9d9a4dba82db276aa6a7f9bd553ad19c296d3.tar.gz libgnunetchat-3ed9d9a4dba82db276aa6a7f9bd553ad19c296d3.zip |
Ensure name information is provided
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/gnunet_chat_group_intern.c | 8 | ||||
-rw-r--r-- | src/gnunet_chat_lib.c | 4 | ||||
-rw-r--r-- | 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, | |||
61 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST))) | 61 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST))) |
62 | return; | 62 | return; |
63 | 63 | ||
64 | GNUNET_MESSENGER_enter_room(group->handle->messenger, door, key); | 64 | struct GNUNET_MESSENGER_Room *room = GNUNET_MESSENGER_enter_room( |
65 | group->handle->messenger, | ||
66 | door, | ||
67 | key | ||
68 | ); | ||
69 | |||
70 | handle_send_room_name(group->handle, room); | ||
65 | } | 71 | } |
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) | |||
1863 | struct GNUNET_PeerIdentity door; | 1863 | struct GNUNET_PeerIdentity door; |
1864 | GNUNET_PEER_resolve(invitation->door, &door); | 1864 | GNUNET_PEER_resolve(invitation->door, &door); |
1865 | 1865 | ||
1866 | GNUNET_MESSENGER_enter_room( | 1866 | struct GNUNET_MESSENGER_Room *room = GNUNET_MESSENGER_enter_room( |
1867 | invitation->context->handle->messenger, | 1867 | invitation->context->handle->messenger, |
1868 | &door, &(invitation->key) | 1868 | &door, &(invitation->key) |
1869 | ); | 1869 | ); |
1870 | |||
1871 | handle_send_room_name(invitation->context->handle, room); | ||
1870 | } | 1872 | } |
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 @@ | |||
24 | 24 | ||
25 | #include "gnunet_chat_util.h" | 25 | #include "gnunet_chat_util.h" |
26 | 26 | ||
27 | |||
28 | void | 27 | void |
29 | util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, | 28 | util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, |
30 | struct GNUNET_ShortHashCode *shorthash) | 29 | struct GNUNET_ShortHashCode *shorthash) |