aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_handle.c')
-rw-r--r--src/gnunet_chat_handle.c11
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:
473 check.contact, 473 check.contact,
474 context))) 474 context)))
475 { 475 {
476 context_delete_records(context); 476 context->deleted = GNUNET_YES;
477 context_write_records(context);
478
477 context->type = GNUNET_CHAT_CONTEXT_TYPE_CONTACT; 479 context->type = GNUNET_CHAT_CONTEXT_TYPE_CONTACT;
480 context->deleted = GNUNET_NO;
481
478 context_write_records(context); 482 context_write_records(context);
479 } 483 }
480 else if (checks >= 2) 484 else if (checks >= 2)
481 { 485 {
482 context_delete_records(context); 486 context->deleted = GNUNET_YES;
487 context_write_records(context);
488
483 context->type = GNUNET_CHAT_CONTEXT_TYPE_GROUP; 489 context->type = GNUNET_CHAT_CONTEXT_TYPE_GROUP;
490 context->deleted = GNUNET_NO;
484 491
485 if (context->contact) 492 if (context->contact)
486 { 493 {