Author: asterix Date: 2008-10-01 18:07:58 +0200 (Wed, 01 Oct 2008) New Revision: 10459
Modified: trunk/src/common/connection_handlers.py Log: really remove avatar from roster when a contact removes his avatar. Fixes #4060
Modified: trunk/src/common/connection_handlers.py =================================================================== --- trunk/src/common/connection_handlers.py 2008-10-01 13:20:29 UTC (rev 10458) +++ trunk/src/common/connection_handlers.py 2008-10-01 16:07:58 UTC (rev 10459) @@ -2160,7 +2160,7 @@ sess.terminate() del self.sessions[jid_stripped][sess.thread_id]
- if avatar_sha and ptype != 'error': + if avatar_sha is not None and ptype != 'error': if not self.vcard_shas.has_key(jid_stripped): cached_vcard = self.get_cached_vcard(jid_stripped) if cached_vcard and cached_vcard.has_key('PHOTO') and \