aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_context.c
diff options
context:
space:
mode:
authorJacki <jacki@thejackimonster.de>2024-02-10 05:55:30 +0100
committerJacki <jacki@thejackimonster.de>2024-02-10 05:55:30 +0100
commit9d04b7c3981d1e0d25655dcb047c876dd5b275f6 (patch)
tree7714a8aeda0e1255fedddfff92ac0a5b522b8916 /src/gnunet_chat_context.c
parentff5b51e8b00440dcf7ee252451947ce0622fd9c1 (diff)
downloadlibgnunetchat-9d04b7c3981d1e0d25655dcb047c876dd5b275f6.tar.gz
libgnunetchat-9d04b7c3981d1e0d25655dcb047c876dd5b275f6.zip
Fix rejections of invitations
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r--src/gnunet_chat_context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c
index 128fe8b..d7073ed 100644
--- a/src/gnunet_chat_context.c
+++ b/src/gnunet_chat_context.c
@@ -48,6 +48,8 @@ init_new_context (struct GNUNET_CHAT_Context *context,
48 initial_map_size, GNUNET_NO); 48 initial_map_size, GNUNET_NO);
49 context->messages = GNUNET_CONTAINER_multihashmap_create( 49 context->messages = GNUNET_CONTAINER_multihashmap_create(
50 initial_map_size, GNUNET_NO); 50 initial_map_size, GNUNET_NO);
51 context->rejections = GNUNET_CONTAINER_multihashmap_create(
52 initial_map_size, GNUNET_NO);
51 context->invites = GNUNET_CONTAINER_multihashmap_create( 53 context->invites = GNUNET_CONTAINER_multihashmap_create(
52 initial_map_size, GNUNET_NO); 54 initial_map_size, GNUNET_NO);
53 context->files = GNUNET_CONTAINER_multihashmap_create( 55 context->files = GNUNET_CONTAINER_multihashmap_create(
@@ -107,6 +109,7 @@ context_destroy (struct GNUNET_CHAT_Context *context)
107 (context->timestamps) && 109 (context->timestamps) &&
108 (context->dependencies) && 110 (context->dependencies) &&
109 (context->messages) && 111 (context->messages) &&
112 (context->rejections) &&
110 (context->invites) && 113 (context->invites) &&
111 (context->files) 114 (context->files)
112 ); 115 );
@@ -124,6 +127,10 @@ context_destroy (struct GNUNET_CHAT_Context *context)
124 ); 127 );
125 128
126 GNUNET_CONTAINER_multihashmap_iterate( 129 GNUNET_CONTAINER_multihashmap_iterate(
130 context->rejections, it_destroy_context_rejections, NULL
131 );
132
133 GNUNET_CONTAINER_multihashmap_iterate(
127 context->invites, it_destroy_context_invites, NULL 134 context->invites, it_destroy_context_invites, NULL
128 ); 135 );
129 136
@@ -132,6 +139,7 @@ context_destroy (struct GNUNET_CHAT_Context *context)
132 GNUNET_CONTAINER_multishortmap_destroy(context->timestamps); 139 GNUNET_CONTAINER_multishortmap_destroy(context->timestamps);
133 GNUNET_CONTAINER_multihashmap_destroy(context->dependencies); 140 GNUNET_CONTAINER_multihashmap_destroy(context->dependencies);
134 GNUNET_CONTAINER_multihashmap_destroy(context->messages); 141 GNUNET_CONTAINER_multihashmap_destroy(context->messages);
142 GNUNET_CONTAINER_multihashmap_destroy(context->rejections);
135 GNUNET_CONTAINER_multihashmap_destroy(context->invites); 143 GNUNET_CONTAINER_multihashmap_destroy(context->invites);
136 GNUNET_CONTAINER_multihashmap_destroy(context->files); 144 GNUNET_CONTAINER_multihashmap_destroy(context->files);
137 145