diff options
author | Jacki <jacki@thejackimonster.de> | 2024-02-20 00:41:38 +0100 |
---|---|---|
committer | Jacki <jacki@thejackimonster.de> | 2024-02-20 00:41:38 +0100 |
commit | 4bf5c1d2b40272db5c232bd499af4bb26ddab88e (patch) | |
tree | 7d5e790db1aeff58fc92d6f91b60d0cd7a6190bb /src/gnunet_chat_contact_intern.c | |
parent | 864110d3d23724a50ddc974ffb4b5de4addea958 (diff) | |
download | libgnunetchat-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.c | 13 |
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 | ||
61 | struct GNUNET_CHAT_ContactFindJoin | 61 | struct GNUNET_CHAT_ContactFindTag |
62 | { | 62 | { |
63 | const struct GNUNET_HashCode *hash; | 63 | const struct GNUNET_HashCode *hash; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | enum GNUNET_GenericReturnValue | 66 | enum GNUNET_GenericReturnValue |
67 | it_contact_find_rejection (void *cls, | 67 | it_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)) |