--- a/libpurple/purpleconversation.h Sat Aug 09 18:21:54 2025 -0500 +++ b/libpurple/purpleconversation.h Sun Aug 10 23:44:08 2025 +0800 @@ -31,6 +31,7 @@ #include <glib-object.h> #include "purpleimage.h" +#include "purplemessage.h" #include "purpleconversationmembers.h" #include "purpletyping.h" #include "purpleversion.h" @@ -1044,6 +1045,19 @@ PurpleConversationMember *purple_conversation_find_or_add_member(PurpleConversation *conversation, PurpleContactInfo *info, gboolean announce, const char *message); /** + * purple_conversation_find_message_by_id: + * @id: The id of the message. + * + * Looks up a message in a conversation based on its id property. + * + * Returns: (transfer none): The message if found, otherwise %NULL. + * + * Since: 3.0 + */ +PURPLE_AVAILABLE_IN_3_0 +PurpleMessage *purple_conversation_find_message_by_id(PurpleConversation *conversation, const char *id); + +/** * purple_conversation_get_url: * * Gets the URL associated with the conversation.