aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJacki <jacki@thejackimonster.de>2024-01-03 17:08:43 +0100
committerJacki <jacki@thejackimonster.de>2024-01-03 17:08:43 +0100
commit9522abbeea36b629e2a2dfb729398363ed295a9c (patch)
tree51235c7f29ffa43f24eb601dce079c93edcdab81 /include
parent13b1e7f8e5d289b8da96a3d03e3e825a55944e7e (diff)
downloadlibgnunetchat-9522abbeea36b629e2a2dfb729398363ed295a9c.tar.gz
libgnunetchat-9522abbeea36b629e2a2dfb729398363ed295a9c.zip
Add function to check whether a message is recent
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'include')
-rw-r--r--include/gnunet/gnunet_chat_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gnunet/gnunet_chat_lib.h b/include/gnunet/gnunet_chat_lib.h
index 6e3829e..8881619 100644
--- a/include/gnunet/gnunet_chat_lib.h
+++ b/include/gnunet/gnunet_chat_lib.h
@@ -1018,6 +1018,17 @@ enum GNUNET_GenericReturnValue
1018GNUNET_CHAT_message_is_private (const struct GNUNET_CHAT_Message *message); 1018GNUNET_CHAT_message_is_private (const struct GNUNET_CHAT_Message *message);
1019 1019
1020/** 1020/**
1021 * Returns #GNUNET_YES if the message was received recently by related chat
1022 * handle, otherwise it returns #GNUNET_NO.
1023 *
1024 * @param[in] message Message
1025 * @return #GNUNET_YES if the message was received recently,
1026 * otherwise #GNUNET_NO
1027 */
1028enum GNUNET_GenericReturnValue
1029GNUNET_CHAT_message_is_recent (const struct GNUNET_CHAT_Message *message);
1030
1031/**
1021 * Iterates through the contacts of the context related to a given chat 1032 * Iterates through the contacts of the context related to a given chat
1022 * <i>message</i> to check whether it was received by each of the contacts. 1033 * <i>message</i> to check whether it was received by each of the contacts.
1023 * 1034 *