diff libpurple/protocols/jabber/disco.c @ 25831: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
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Sat Feb 14 01:18:25 2009 +0000
+++ b/libpurple/protocols/jabber/disco.c	Sat Feb 14 03:57:22 2009 +0000
@@ -340,7 +340,13 @@
 {
 	const char *ft_proxies;
 
+	/*
+	 * This *should* happen only if the server supports vcard-temp, but there
+	 * are apparently some servers that don't advertise it even though they
+	 * support it.
+	 */
 	jabber_vcard_fetch_mine(js);
+
 	if (js->pep)
 		jabber_avatar_fetch_mine(js);