aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2024-02-17 19:52:49 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2024-02-17 19:52:49 +0100
commitec977be81531d3efffc0c4424ec00cb1c5313e6a (patch)
tree71874e331be928bfcb7b77b5463d7016ad0e922d /include
parent35e3ee46594914fd651d82120772d051a8f5535a (diff)
downloadlibgnunetchat-ec977be81531d3efffc0c4424ec00cb1c5313e6a.tar.gz
libgnunetchat-ec977be81531d3efffc0c4424ec00cb1c5313e6a.zip
Handle message deletion with updated callback of original message
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/gnunet/gnunet_chat_lib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/gnunet/gnunet_chat_lib.h b/include/gnunet/gnunet_chat_lib.h
index 35f9ec6..6e89f62 100644
--- a/include/gnunet/gnunet_chat_lib.h
+++ b/include/gnunet/gnunet_chat_lib.h
@@ -1178,6 +1178,29 @@ enum GNUNET_GenericReturnValue
1178GNUNET_CHAT_message_is_recent (const struct GNUNET_CHAT_Message *message); 1178GNUNET_CHAT_message_is_recent (const struct GNUNET_CHAT_Message *message);
1179 1179
1180/** 1180/**
1181 * Returns #GNUNET_YES if the message was received because of an update by
1182 * related chat handle, otherwise it returns #GNUNET_NO.
1183 *
1184 * @param[in] message Message
1185 * @return #GNUNET_YES if the message was received to update
1186 * a previous message, otherwise #GNUNET_NO
1187 */
1188enum GNUNET_GenericReturnValue
1189GNUNET_CHAT_message_is_update (const struct GNUNET_CHAT_Message *message);
1190
1191/**
1192 * Returns #GNUNET_YES if the message was received because of a deletion by
1193 * related chat handle or if it has been deleted internally, otherwise it
1194 * returns #GNUNET_NO.
1195 *
1196 * @param[in] message Message
1197 * @return #GNUNET_YES if the message was received to delete
1198 * a previous message, otherwise #GNUNET_NO
1199 */
1200enum GNUNET_GenericReturnValue
1201GNUNET_CHAT_message_is_deleted (const struct GNUNET_CHAT_Message *message);
1202
1203/**
1181 * Iterates through the contacts of the context related to a given chat 1204 * Iterates through the contacts of the context related to a given chat
1182 * <i>message</i> to check whether it was received by each of the contacts. 1205 * <i>message</i> to check whether it was received by each of the contacts.
1183 * 1206 *