commit c18988ad59fa8a6653e73abd4b420bd21e9bb2fb parent aec4779ce9030fdf3adb47f7791566a5aacf1a6e Author: TheJackiMonster <thejackimonster@gmail.com> Date: Sun, 5 Sep 2021 20:07:44 +0200 Fixed wrong usage of function to request a context Signed-off-by: TheJackiMonster <thejackimonster@gmail.com> Diffstat:
| M | src/gnunet_chat_handle_intern.c | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c @@ -383,13 +383,13 @@ on_handle_message (void *cls, { struct GNUNET_CHAT_Handle *handle = cls; - struct GNUNET_CHAT_Context *context = request_handle_context_by_room( - handle, room - ); - - if (!context) + if (GNUNET_OK != request_handle_context_by_room(handle, room)) return; + struct GNUNET_CHAT_Context *context = GNUNET_CONTAINER_multihashmap_get( + handle->contexts, GNUNET_MESSENGER_room_get_key(room) + ); + const struct GNUNET_TIME_Absolute timestamp = GNUNET_TIME_absolute_ntoh( msg->header.timestamp );