summaryrefslogtreecommitdiff
path: root/libpurple/buddy.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/buddy.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/buddy.c')
-rw-r--r--libpurple/buddy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpurple/buddy.c b/libpurple/buddy.c
index f4e096b038..fb5a793b2a 100644
--- a/libpurple/buddy.c
+++ b/libpurple/buddy.c
@@ -173,13 +173,14 @@ purple_buddy_constructed(GObject *object) {
/* If there is no id for the user, generate a SHA256 based on the
* account_id and the username.
*/
+ PurpleContactInfo *info = PURPLE_CONTACT_INFO(priv->account);
GChecksum *sum = g_checksum_new(G_CHECKSUM_SHA256);
const guchar *data = NULL;
data = (const guchar *)purple_account_get_protocol_id(priv->account);
g_checksum_update(sum, data, -1);
- data = (const guchar *)purple_account_get_username(priv->account);
+ data = (const guchar *)purple_contact_info_get_username(info);
g_checksum_update(sum, data, -1);
data = (const guchar *)priv->name;