diff options
author | Jacki <jacki@thejackimonster.de> | 2024-04-28 20:39:14 +0200 |
---|---|---|
committer | Jacki <jacki@thejackimonster.de> | 2024-04-28 20:39:14 +0200 |
commit | 56b4e95cd59010900c1bc92005b277123b37f69d (patch) | |
tree | 62ece12bc6da1f1d3c79418287ae931d1daffa63 /src/gnunet_chat_handle_intern.c | |
parent | e6062f4a30a55053011e67c4ef1733f9ab650bec (diff) | |
download | libgnunetchat-56b4e95cd59010900c1bc92005b277123b37f69d.tar.gz libgnunetchat-56b4e95cd59010900c1bc92005b277123b37f69d.zip |
Fix automatic lobby deletion
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index f11312a..cb90874 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -450,6 +450,32 @@ cb_account_rename (void *cls, | |||
450 | ); | 450 | ); |
451 | } | 451 | } |
452 | 452 | ||
453 | void | ||
454 | cb_lobby_deletion (void *cls, | ||
455 | enum GNUNET_ErrorCode ec) | ||
456 | { | ||
457 | GNUNET_assert(cls); | ||
458 | |||
459 | struct GNUNET_CHAT_InternalAccounts *accounts = ( | ||
460 | (struct GNUNET_CHAT_InternalAccounts*) cls | ||
461 | ); | ||
462 | |||
463 | accounts->op = NULL; | ||
464 | |||
465 | internal_accounts_stop_method(accounts); | ||
466 | |||
467 | if (GNUNET_EC_NONE != ec) | ||
468 | handle_send_internal_message( | ||
469 | accounts->handle, | ||
470 | accounts->account, | ||
471 | NULL, | ||
472 | GNUNET_CHAT_FLAG_WARNING, | ||
473 | GNUNET_ErrorCode_get_hint(ec) | ||
474 | ); | ||
475 | |||
476 | internal_accounts_destroy(accounts); | ||
477 | } | ||
478 | |||
453 | static void | 479 | static void |
454 | cb_account_update_completion (void *cls, | 480 | cb_account_update_completion (void *cls, |
455 | const struct GNUNET_CRYPTO_PrivateKey *key, | 481 | const struct GNUNET_CRYPTO_PrivateKey *key, |