aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_lib_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_lib_intern.c')
-rw-r--r--src/gnunet_chat_lib_intern.c9
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
27void 27void
28cb_account_creation (void *cls, 28cb_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
39struct GNUNET_CHAT_HandleIterateContacts 44struct GNUNET_CHAT_HandleIterateContacts