diff options
Diffstat (limited to 'src/gnunet_chat_handle.c')
-rw-r--r-- | src/gnunet_chat_handle.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c index 7b84673..45f7861 100644 --- a/src/gnunet_chat_handle.c +++ b/src/gnunet_chat_handle.c @@ -473,14 +473,21 @@ check_type: check.contact, context))) { - context_delete_records(context); + context->deleted = GNUNET_YES; + context_write_records(context); + context->type = GNUNET_CHAT_CONTEXT_TYPE_CONTACT; + context->deleted = GNUNET_NO; + context_write_records(context); } else if (checks >= 2) { - context_delete_records(context); + context->deleted = GNUNET_YES; + context_write_records(context); + context->type = GNUNET_CHAT_CONTEXT_TYPE_GROUP; + context->deleted = GNUNET_NO; if (context->contact) { |