diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gnunet_chat_handle.c | 5 | ||||
-rw-r--r-- | src/gnunet_chat_lib.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c index 0a0b743..1456acb 100644 --- a/src/gnunet_chat_handle.c +++ b/src/gnunet_chat_handle.c | |||
@@ -221,7 +221,9 @@ handle_request_context_by_room (struct GNUNET_CHAT_Handle *handle, | |||
221 | 221 | ||
222 | struct GNUNET_CHAT_CheckHandleRoomMembers check; | 222 | struct GNUNET_CHAT_CheckHandleRoomMembers check; |
223 | 223 | ||
224 | if (context) | 224 | if ((context) && (context->type == GNUNET_CHAT_CONTEXT_TYPE_UNKNOWN)) |
225 | goto check_type; | ||
226 | else if (context) | ||
225 | return GNUNET_OK; | 227 | return GNUNET_OK; |
226 | 228 | ||
227 | context = context_create_from_room(handle, room); | 229 | context = context_create_from_room(handle, room); |
@@ -238,6 +240,7 @@ handle_request_context_by_room (struct GNUNET_CHAT_Handle *handle, | |||
238 | if (GNUNET_CHAT_CONTEXT_TYPE_GROUP == context->type) | 240 | if (GNUNET_CHAT_CONTEXT_TYPE_GROUP == context->type) |
239 | goto setup_group; | 241 | goto setup_group; |
240 | 242 | ||
243 | check_type: | ||
241 | check.ignore_key = GNUNET_MESSENGER_get_key(handle->messenger); | 244 | check.ignore_key = GNUNET_MESSENGER_get_key(handle->messenger); |
242 | check.contact = NULL; | 245 | check.contact = NULL; |
243 | 246 | ||
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 87692ec..0e86499 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c | |||
@@ -410,7 +410,7 @@ GNUNET_CHAT_group_get_user_pointer (const struct GNUNET_CHAT_Group *group) | |||
410 | 410 | ||
411 | 411 | ||
412 | void | 412 | void |
413 | GNUNET_CHAT_group_invite_contact (struct GNUNET_CHAT_Group *group, | 413 | GNUNET_CHAT_group_invite_contact (const struct GNUNET_CHAT_Group *group, |
414 | struct GNUNET_CHAT_Contact *contact) | 414 | struct GNUNET_CHAT_Contact *contact) |
415 | { | 415 | { |
416 | if ((!group) || (!contact)) | 416 | if ((!group) || (!contact)) |