aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-11-19 00:17:27 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-11-19 00:17:27 +0100
commitcdd9c0cb797aa349eb3147d0db3fd1224df10c04 (patch)
tree8775b04f94858b2ebb33f0b33ab6df9761eed485
parent0f17fe03eaf546f48b0691171bdb2c2ce14a0363 (diff)
downloadgnunet-cdd9c0cb797aa349eb3147d0db3fd1224df10c04.tar.gz
gnunet-cdd9c0cb797aa349eb3147d0db3fd1224df10c04.zip
-forward stored message to client api handler
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-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");