diff libpurple/protocols/jabber/buddy.c @ 28914:e14402d6c5e0

jabber: Go back to not overwriting avatars if there is not one locally set. This isn't quite right yet, because we need to pick up the hash and advertise it in our presence. Fixes #10287.
author Paul Aurich <paul@darkrain42.org>
date Fri, 13 Nov 2009 18:39:23 +0000
parents 738cd1adb3cf
children edb503872793
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Fri Nov 13 18:34:04 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Fri Nov 13 18:39:23 2009 +0000
@@ -924,7 +924,7 @@
 	}
 
 	/* Republish our vcard if the photo is different than the server's */
-	if (!purple_strequal(vcard_hash, js->initial_avatar_hash)) {
+	if (js->initial_avatar_hash && !purple_strequal(vcard_hash, js->initial_avatar_hash)) {
 		/*
 		 * Google Talk has developed the behavior that it will not accept
 		 * a vcard set in the first 10 seconds (or so) of the connection;