diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-02-13 21:05:56 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-02-13 21:05:56 +0100 |
commit | 349ec7b8d1452f3361b962ec8b845fc85acf052e (patch) | |
tree | 4e3ec00f8c4b3c6f874a23df02ee3ec2a7f42221 | |
parent | 005133f48187c05fa5c91e0424df8017347daf25 (diff) | |
download | libgnunetchat-349ec7b8d1452f3361b962ec8b845fc85acf052e.tar.gz libgnunetchat-349ec7b8d1452f3361b962ec8b845fc85acf052e.zip |
Refresh on newly created account
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/gnunet_chat_lib_intern.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c index 154de1b..99384b4 100644 --- a/src/gnunet_chat_lib_intern.c +++ b/src/gnunet_chat_lib_intern.c | |||
@@ -26,14 +26,19 @@ | |||
26 | 26 | ||
27 | void | 27 | void |
28 | cb_account_creation (void *cls, | 28 | cb_account_creation (void *cls, |
29 | GNUNET_UNUSED const struct GNUNET_IDENTITY_PrivateKey *pk, | 29 | const struct GNUNET_IDENTITY_PrivateKey *key, |
30 | GNUNET_UNUSED const char *emsg) | 30 | const char *emsg) |
31 | { | 31 | { |
32 | GNUNET_assert(cls); | 32 | GNUNET_assert(cls); |
33 | 33 | ||
34 | struct GNUNET_CHAT_Handle *handle = (struct GNUNET_CHAT_Handle*) cls; | 34 | struct GNUNET_CHAT_Handle *handle = (struct GNUNET_CHAT_Handle*) cls; |
35 | 35 | ||
36 | handle->creation_op = NULL; | 36 | handle->creation_op = NULL; |
37 | |||
38 | if (emsg) | ||
39 | handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_WARNING, emsg); | ||
40 | else if (key) | ||
41 | handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_REFRESH, NULL); | ||
37 | } | 42 | } |
38 | 43 | ||
39 | struct GNUNET_CHAT_HandleIterateContacts | 44 | struct GNUNET_CHAT_HandleIterateContacts |