libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit 349ec7b8d1452f3361b962ec8b845fc85acf052e
parent 005133f48187c05fa5c91e0424df8017347daf25
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Sun, 13 Feb 2022 21:05:56 +0100

Refresh on newly created account

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
Msrc/gnunet_chat_lib_intern.c | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c @@ -26,14 +26,19 @@ void cb_account_creation (void *cls, - GNUNET_UNUSED const struct GNUNET_IDENTITY_PrivateKey *pk, - GNUNET_UNUSED const char *emsg) + const struct GNUNET_IDENTITY_PrivateKey *key, + const char *emsg) { GNUNET_assert(cls); struct GNUNET_CHAT_Handle *handle = (struct GNUNET_CHAT_Handle*) cls; handle->creation_op = NULL; + + if (emsg) + handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_WARNING, emsg); + else if (key) + handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_REFRESH, NULL); } struct GNUNET_CHAT_HandleIterateContacts