--- a/protocols/demo/purpledemoprotocolactions.c Tue Sep 17 18:58:22 2024 -0500 +++ b/protocols/demo/purpledemoprotocolactions.c Thu Sep 19 21:27:25 2024 -0500 @@ -443,7 +443,9 @@ PurpleContactManager *contact_manager = NULL; PurpleNotification *notification = NULL; PurpleNotificationManager *notification_manager = NULL; + PurpleTags *tags = NULL; const char *account_id = NULL; + const char *message = NULL; static guint counter = 0; account_id = g_variant_get_string(parameter, NULL); @@ -454,7 +456,14 @@ contact = purple_contact_manager_find_with_id(contact_manager, account, contact_ids[counter]); + tags = purple_contact_info_get_tags(PURPLE_CONTACT_INFO(contact)); + message = purple_tags_get(tags, "add-contact-req-msg"); + request = purple_add_contact_request_new(contact); + if(!purple_strempty(message)) { + purple_add_contact_request_set_message(request, message); + } + notification = purple_notification_add_contact_new(NULL, request); notification_manager = purple_notification_manager_get_default();