aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_contact_intern.c
diff options
context:
space:
mode:
authorJacki <jacki@thejackimonster.de>2024-02-20 00:41:38 +0100
committerJacki <jacki@thejackimonster.de>2024-02-20 00:41:38 +0100
commit4bf5c1d2b40272db5c232bd499af4bb26ddab88e (patch)
tree7d5e790db1aeff58fc92d6f91b60d0cd7a6190bb /src/gnunet_chat_contact_intern.c
parent864110d3d23724a50ddc974ffb4b5de4addea958 (diff)
downloadlibgnunetchat-4bf5c1d2b40272db5c232bd499af4bb26ddab88e.tar.gz
libgnunetchat-4bf5c1d2b40272db5c232bd499af4bb26ddab88e.zip
Adjust blocking implementation to handle custom tag values too
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'src/gnunet_chat_contact_intern.c')
-rw-r--r--src/gnunet_chat_contact_intern.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gnunet_chat_contact_intern.c b/src/gnunet_chat_contact_intern.c
index 4b07e43..4864ce3 100644
--- a/src/gnunet_chat_contact_intern.c
+++ b/src/gnunet_chat_contact_intern.c
@@ -58,21 +58,18 @@ it_contact_find_room (void *cls,
58 return GNUNET_YES; 58 return GNUNET_YES;
59} 59}
60 60
61struct GNUNET_CHAT_ContactFindJoin 61struct GNUNET_CHAT_ContactFindTag
62{ 62{
63 const struct GNUNET_HashCode *hash; 63 const struct GNUNET_HashCode *hash;
64}; 64};
65 65
66enum GNUNET_GenericReturnValue 66enum GNUNET_GenericReturnValue
67it_contact_find_rejection (void *cls, 67it_contact_find_tag (void *cls,
68 const struct GNUNET_HashCode *key, 68 const struct GNUNET_CHAT_Message *message)
69 void *value)
70{ 69{
71 GNUNET_assert((cls) && (key) && (value)); 70 GNUNET_assert((cls) && (message));
72 71
73 struct GNUNET_CHAT_ContactFindJoin *find = cls; 72 struct GNUNET_CHAT_ContactFindTag *find = cls;
74
75 const struct GNUNET_CHAT_Message *message = value;
76 73
77 if ((GNUNET_YES != message_has_msg(message)) || 74 if ((GNUNET_YES != message_has_msg(message)) ||
78 (message->flags & GNUNET_MESSENGER_FLAG_DELETE)) 75 (message->flags & GNUNET_MESSENGER_FLAG_DELETE))