summaryrefslogtreecommitdiff
path: root/libpurple/purplechatconversation.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2022-12-14 01:29:28 -0600
committerGary Kramlich <grim@reaperworld.com>2022-12-14 01:29:28 -0600
commitb64ee9e91390fb83e035ed17f82e829682fbab0f (patch)
tree6dbc781b0a9d949cebf353edfd0d3520d8a6a80e /libpurple/purplechatconversation.c
parente1bd09751e5552180c789859dce22390b191ae6f (diff)
downloadpidgin-b64ee9e91390fb83e035ed17f82e829682fbab0f.tar.gz
Update libpurple for the deprecations in the account api
Testing Done: Compiled and ran the unit tests. Reviewed at https://reviews.imfreedom.org/r/2133/
Diffstat (limited to 'libpurple/purplechatconversation.c')
-rw-r--r--libpurple/purplechatconversation.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libpurple/purplechatconversation.c b/libpurple/purplechatconversation.c
index c838052309..17a55498e4 100644
--- a/libpurple/purplechatconversation.c
+++ b/libpurple/purplechatconversation.c
@@ -206,7 +206,8 @@ purple_chat_conversation_constructed(GObject *obj) {
if(display_name != NULL) {
purple_chat_conversation_set_nick(chat, display_name);
} else {
- const gchar *username = purple_account_get_username(account);
+ PurpleContactInfo *info = PURPLE_CONTACT_INFO(account);
+ const gchar *username = purple_contact_info_get_username(info);
purple_chat_conversation_set_nick(chat, username);
}
@@ -415,18 +416,19 @@ purple_chat_conversation_new(PurpleAccount *account, const gchar *name) {
connection = purple_account_get_connection(account);
if(!PURPLE_IS_CONNECTION(connection)) {
+ PurpleContactInfo *info = PURPLE_CONTACT_INFO(account);
purple_debug_warning("chat-conversation", "Refusing to create chat "
"for disconnected account %s",
- purple_account_get_username(account));
+ purple_contact_info_get_username(info));
return NULL;
}
- return PURPLE_CONVERSATION(g_object_new(
+ return g_object_new(
PURPLE_TYPE_CHAT_CONVERSATION,
"account", account,
"name", name,
"title", name,
- NULL));
+ NULL);
}
GList *