diff options
Diffstat (limited to 'src/gnunet_chat_handle.c')
-rw-r--r-- | src/gnunet_chat_handle.c | 5 |
1 files changed, 4 insertions, 1 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 | ||