diff options
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index a34c63e..ede1eb7 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -183,6 +183,7 @@ request_handle_context_by_room (struct GNUNET_CHAT_Handle *handle, | |||
183 | return context; | 183 | return context; |
184 | 184 | ||
185 | context = context_create_from_room(handle, room); | 185 | context = context_create_from_room(handle, room); |
186 | context_load_config(context); | ||
186 | 187 | ||
187 | if (GNUNET_OK != GNUNET_CONTAINER_multihashmap_put( | 188 | if (GNUNET_OK != GNUNET_CONTAINER_multihashmap_put( |
188 | handle->contexts, key, context, | 189 | handle->contexts, key, context, |
@@ -267,7 +268,7 @@ on_handle_message (void *cls, | |||
267 | GNUNET_UNUSED const struct GNUNET_MESSENGER_Contact *sender, | 268 | GNUNET_UNUSED const struct GNUNET_MESSENGER_Contact *sender, |
268 | const struct GNUNET_MESSENGER_Message *msg, | 269 | const struct GNUNET_MESSENGER_Message *msg, |
269 | const struct GNUNET_HashCode *hash, | 270 | const struct GNUNET_HashCode *hash, |
270 | GNUNET_UNUSED enum GNUNET_MESSENGER_MessageFlags flags) | 271 | enum GNUNET_MESSENGER_MessageFlags flags) |
271 | { | 272 | { |
272 | struct GNUNET_CHAT_Handle *handle = cls; | 273 | struct GNUNET_CHAT_Handle *handle = cls; |
273 | 274 | ||
@@ -285,7 +286,7 @@ on_handle_message (void *cls, | |||
285 | if (message) | 286 | if (message) |
286 | return; | 287 | return; |
287 | 288 | ||
288 | message = message_create_from_msg(context, hash, msg); | 289 | message = message_create_from_msg(context, hash, flags, msg); |
289 | 290 | ||
290 | switch (msg->header.kind) | 291 | switch (msg->header.kind) |
291 | { | 292 | { |
@@ -360,6 +361,7 @@ it_destroy_handle_contexts (GNUNET_UNUSED void *cls, | |||
360 | void *value) | 361 | void *value) |
361 | { | 362 | { |
362 | struct GNUNET_CHAT_Context *context = value; | 363 | struct GNUNET_CHAT_Context *context = value; |
364 | context_save_config(context); | ||
363 | context_destroy(context); | 365 | context_destroy(context); |
364 | return GNUNET_YES; | 366 | return GNUNET_YES; |
365 | } | 367 | } |