Commit e070708c authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

user-info-dialog: Use chatty-item API to set avatar

parent e673a2fb
......@@ -86,18 +86,13 @@ show_select_avatar_dialog (ChattyUserInfoDialog *self)
static void
button_avatar_clicked_cb (ChattyUserInfoDialog *self)
PurpleContact *contact;
char *file_name = NULL;
g_autofree char *file_name = NULL;
file_name = show_select_avatar_dialog (self);
if (file_name) {
contact = purple_buddy_get_contact (self->buddy);
purple_buddy_icons_node_set_custom_icon_from_file ((PurpleBlistNode*)contact, file_name);
g_free (file_name);
if (file_name)
chatty_item_set_avatar_async (CHATTY_ITEM (self->chat), file_name,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment