From 349f8bd276c05ae6e7f1d8d023916a4e243a00f5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Wed, 1 Oct 2008 16:07:58 +0000 Subject: [PATCH] really remove avatar from roster when a contact removes his avatar. Fixes #4060 --- src/common/connection_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 0d1f6f1a97..fb2a7db084 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -2160,7 +2160,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, 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 \ -- GitLab