commit d3c0e4d8474421204cc7bc8b2e2bb95f9e34cb3c
parent 51309b73b0c9222b8c1dc8f20adc921433e706cd
Author: Jacki <jacki@thejackimonster.de>
Date: Sun, 21 Jan 2024 05:53:51 +0100
Adjust contact check for invitation
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
@@ -1077,7 +1077,7 @@ GNUNET_CHAT_group_invite_contact (const struct GNUNET_CHAT_Group *group,
{
GNUNET_CHAT_VERSION_ASSERT();
- if ((!group) || (!contact))
+ if ((!group) || (!contact) || (!contact->member))
return;
struct GNUNET_CHAT_Context *context = contact_find_context(contact);
@@ -1637,7 +1637,7 @@ GNUNET_CHAT_message_get_recipient (const struct GNUNET_CHAT_Message *message)
if ((!message) || (GNUNET_CHAT_FLAG_NONE != message->flag) ||
(!(message->context)) || (!(message->context->room)))
return NULL;
-
+
const struct GNUNET_MESSENGER_Contact *recipient = GNUNET_MESSENGER_get_recipient(
message->context->room, &(message->hash)
);