aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_handle_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r--src/gnunet_chat_handle_intern.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c
index 10bea17..beb65d3 100644
--- a/src/gnunet_chat_handle_intern.c
+++ b/src/gnunet_chat_handle_intern.c
@@ -364,8 +364,16 @@ on_handle_identity(void *cls,
364 (0 < GNUNET_CONTAINER_multishortmap_size(handle->contacts))) 364 (0 < GNUNET_CONTAINER_multishortmap_size(handle->contacts)))
365 return; 365 return;
366 366
367 GNUNET_MESSENGER_find_rooms(
368 handle->messenger, NULL, find_handle_rooms, handle
369 );
370
371 GNUNET_MESSENGER_find_rooms(
372 handle->messenger, NULL, scan_handle_rooms, handle
373 );
374
367 if (!handle->msg_cb) 375 if (!handle->msg_cb)
368 goto skip_login; 376 return;
369 377
370 struct GNUNET_CHAT_Message *msg = message_create_internally( 378 struct GNUNET_CHAT_Message *msg = message_create_internally(
371 NULL, GNUNET_CHAT_FLAG_LOGIN, NULL 379 NULL, GNUNET_CHAT_FLAG_LOGIN, NULL
@@ -373,15 +381,6 @@ on_handle_identity(void *cls,
373 381
374 handle->msg_cb(handle->msg_cls, NULL, msg); 382 handle->msg_cb(handle->msg_cls, NULL, msg);
375 message_destroy(msg); 383 message_destroy(msg);
376
377skip_login:
378 GNUNET_MESSENGER_find_rooms(
379 handle->messenger, NULL, find_handle_rooms, handle
380 );
381
382 GNUNET_MESSENGER_find_rooms(
383 handle->messenger, NULL, scan_handle_rooms, handle
384 );
385} 384}
386 385
387void 386void