Mercurial > pidgin
diff libpurple/protocols/jabber/si.c @ 29810:4cfa6d49bee5
Added the "thumbs" namespace to namespaces.h
Check the namespace on thumbnails elements on incoming transferes.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sun, 29 Nov 2009 19:14:39 +0000 |
parents | b0f1698c52f8 |
children | 1e8dc177415e |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/si.c Sun Nov 29 19:06:30 2009 +0000 +++ b/libpurple/protocols/jabber/si.c Sun Nov 29 19:14:39 2009 +0000 @@ -1264,7 +1264,7 @@ purple_xfer_get_thumbnail_size(xfer), "image/jpeg", TRUE, jsx->js); xmlnode *thumbnail = xmlnode_new_child(file, "thumbnail"); - xmlnode_set_namespace(thumbnail, "urn:xmpp:thumbs:0"); + xmlnode_set_namespace(thumbnail, NS_THUMBS); xmlnode_set_attrib(thumbnail, "cid", jabber_data_get_cid(thumbnail_data)); xmlnode_set_attrib(thumbnail, "mime-type", "image/jpeg"); @@ -1766,7 +1766,8 @@ js->file_transfers = g_list_append(js->file_transfers, xfer); /* if there is a thumbnail, we should request it... */ - if ((thumbnail = xmlnode_get_child(file, "thumbnail"))) { + if ((thumbnail = xmlnode_get_child_with_namespace(file, "thumbnail", + NS_THUMBS))) { const char *cid = xmlnode_get_attrib(thumbnail, "cid"); if (cid) { JabberIq *request =