aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/messenger/messenger_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messenger/messenger_api.c b/src/messenger/messenger_api.c
index c9b143662..81a02e858 100644
--- a/src/messenger/messenger_api.c
+++ b/src/messenger/messenger_api.c
@@ -255,8 +255,10 @@ handle_recv_message (void *cls,
255 255
256 handle_room_message (room, contact, &message, hash); 256 handle_room_message (room, contact, &message, hash);
257 257
258 const struct GNUNET_MESSENGER_Message *stored_message = get_room_message(room, hash);
259
258 if (handle->msg_callback) 260 if (handle->msg_callback)
259 handle->msg_callback (handle->msg_cls, room, contact, &message, hash, flags); 261 handle->msg_callback (handle->msg_cls, room, contact, stored_message, hash, flags);
260 } 262 }
261 else 263 else
262 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Room not found\n"); 264 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Room not found\n");