aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_handle_intern.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-11-20 04:20:03 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-11-20 04:20:03 +0100
commit788a15d1c82a562e7080d3c523b30340938d8f1d (patch)
tree3f040e52d14a79b54397526857781531d490b1b3 /src/gnunet_chat_handle_intern.c
parent41b1445ce9191b4f4a3a6355dad24d39945f3b69 (diff)
downloadlibgnunetchat-788a15d1c82a562e7080d3c523b30340938d8f1d.tar.gz
libgnunetchat-788a15d1c82a562e7080d3c523b30340938d8f1d.zip
Simplified identity keys into basic strings to integrate into ui
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r--src/gnunet_chat_handle_intern.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c
index e212699..d275aaf 100644
--- a/src/gnunet_chat_handle_intern.c
+++ b/src/gnunet_chat_handle_intern.c
@@ -397,6 +397,8 @@ on_handle_identity(void *cls,
397 (handle->groups) && 397 (handle->groups) &&
398 (handle->contacts)); 398 (handle->contacts));
399 399
400 handle_update_key(handle);
401
400 if ((0 < GNUNET_CONTAINER_multihashmap_size(handle->contexts)) || 402 if ((0 < GNUNET_CONTAINER_multihashmap_size(handle->contexts)) ||
401 (0 < GNUNET_CONTAINER_multihashmap_size(handle->groups)) || 403 (0 < GNUNET_CONTAINER_multihashmap_size(handle->groups)) ||
402 (0 < GNUNET_CONTAINER_multishortmap_size(handle->contacts))) 404 (0 < GNUNET_CONTAINER_multishortmap_size(handle->contacts)))
@@ -488,6 +490,15 @@ on_handle_message (void *cls,
488 490
489 switch (msg->header.kind) 491 switch (msg->header.kind)
490 { 492 {
493 case GNUNET_MESSENGER_KIND_KEY:
494 {
495 struct GNUNET_CHAT_Contact *contact = GNUNET_CONTAINER_multishortmap_get(
496 handle->contacts, &shorthash
497 );
498
499 contact_update_key(contact);
500 break;
501 }
491 case GNUNET_MESSENGER_KIND_INVITE: 502 case GNUNET_MESSENGER_KIND_INVITE:
492 { 503 {
493 struct GNUNET_CHAT_Invitation *invitation = invitation_create_from_message( 504 struct GNUNET_CHAT_Invitation *invitation = invitation_create_from_message(