libpurple/protocols/jabber/buddy.c

changeset 32277
97f16af01a05
parent 32204
2a09624616c3
child 32678
01f6312a4a7b
equal deleted inserted replaced
32276:abc0b7c0cb86 32277:97f16af01a05
555 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img) 555 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img)
556 { 556 {
557 PurpleAccount *account = purple_connection_get_account(gc); 557 PurpleAccount *account = purple_connection_get_account(gc);
558 558
559 /* Publish the avatar as specified in XEP-0084 */ 559 /* Publish the avatar as specified in XEP-0084 */
560 jabber_avatar_set(gc->proto_data, img); 560 jabber_avatar_set(purple_connection_get_protocol_data(gc), img);
561 /* Set the image in our vCard */ 561 /* Set the image in our vCard */
562 jabber_set_info(gc, purple_account_get_user_info(account)); 562 jabber_set_info(gc, purple_account_get_user_info(account));
563 563
564 /* TODO: Fake image to ourselves, since a number of servers do not echo 564 /* TODO: Fake image to ourselves, since a number of servers do not echo
565 * back our presence to us. To do this without uselessly copying the data 565 * back our presence to us. To do this without uselessly copying the data

mercurial