comparison libpurple/protocols/jabber/disco.c @ 25425:0fa91206cf5a

Always publish a <photo/> element, even if we have an empty buddy icon. XEP-0153 requires we always publish the <x/> element, even if we have no avatar set, so do that, too. I'd also make the whole set of vcard stuff dependent on the server advertising support, but SOME servers out there don't. References #5082 (I suspect this fixes that.)
author Paul Aurich <paul@darkrain42.org>
date Sat, 14 Feb 2009 03:57:22 +0000
parents 9195955395b6
children 7e020fbe2cdb
comparison
equal deleted inserted replaced
25424:b3dbc9e8b6ef 25425:0fa91206cf5a
338 static void 338 static void
339 jabber_disco_finish_server_info_result_cb(JabberStream *js) 339 jabber_disco_finish_server_info_result_cb(JabberStream *js)
340 { 340 {
341 const char *ft_proxies; 341 const char *ft_proxies;
342 342
343 /*
344 * This *should* happen only if the server supports vcard-temp, but there
345 * are apparently some servers that don't advertise it even though they
346 * support it.
347 */
343 jabber_vcard_fetch_mine(js); 348 jabber_vcard_fetch_mine(js);
349
344 if (js->pep) 350 if (js->pep)
345 jabber_avatar_fetch_mine(js); 351 jabber_avatar_fetch_mine(js);
346 352
347 if (!(js->server_caps & JABBER_CAP_GOOGLE_ROSTER)) { 353 if (!(js->server_caps & JABBER_CAP_GOOGLE_ROSTER)) {
348 /* If the server supports JABBER_CAP_GOOGLE_ROSTER; we will have already requested it */ 354 /* If the server supports JABBER_CAP_GOOGLE_ROSTER; we will have already requested it */