Mercurial > pidgin
changeset 13691:87b027bb1f15
[gaim-migrate @ 16094]
SF Patch #1462332 from cbanal
"When updating an avatar and the accounts vcard / info
is empty. The resulting vCard xml that is sent does not
contain the proper attributes.
This causes the vCard update to be ignored by the
jabber server."
I'm not 100% positive about this, but it seems right.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 25 Apr 2006 17:19:45 +0000 |
parents | 6a86f4ec744e |
children | ea77ce998dc7 |
files | src/protocols/jabber/buddy.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c Tue Apr 25 17:15:00 2006 +0000 +++ b/src/protocols/jabber/buddy.c Tue Apr 25 17:19:45 2006 +0000 @@ -362,6 +362,7 @@ JabberStream *js = gc->proto_data; xmlnode *vc_node; char *avatar_file = NULL; + struct tag_attr *tag_attr; if(js->avatar_hash) g_free(js->avatar_hash); @@ -375,6 +376,8 @@ if(!vc_node && avatar_file) { vc_node = xmlnode_new("vCard"); + for(tag_attr = vcard_tag_attr_list; tag_attr->attr != NULL; ++tag_attr) + xmlnode_set_attrib(vc_node, tag_attr->attr, tag_attr->value); } if(vc_node) {