pidgin/pidgin

Parents e28d0c86b62c
Children 0b9b81b6ff18
Update PidginContactList to use purple_contact_create_dm_async

This also fixes the newly removed create parameter from purple_contact_find_dm.

Testing Done:
Hung out with turtles.

Reviewed at https://reviews.imfreedom.org/r/3075/
--- a/pidgin/pidgincontactlist.c Wed Apr 10 02:10:08 2024 -0500
+++ b/pidgin/pidgincontactlist.c Wed Apr 10 02:23:01 2024 -0500
@@ -240,6 +240,7 @@
G_GNUC_UNUSED gpointer data)
{
PurpleContactInfo *info = NULL;
+ PurpleConversation *conversation = NULL;
PurplePerson *person = NULL;
GtkSelectionModel *model = NULL;
@@ -254,7 +255,10 @@
}
info = purple_person_get_priority_contact_info(person);
- purple_contact_find_dm(PURPLE_CONTACT(info), TRUE);
+ conversation = purple_contact_find_dm(PURPLE_CONTACT(info));
+ if(!PURPLE_IS_CONVERSATION(conversation)) {
+ purple_contact_create_dm_async(PURPLE_CONTACT(info), NULL, NULL, NULL);
+ }
g_clear_object(&person);
}