From d5b62294abd594e30ca3519794d919122f3bc288 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Fri, 1 Dec 2006 21:23:24 +0000 Subject: [PATCH] remove useless test in get_cached_vcard func. fixes #2717 --- src/common/connection_handlers.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 2dfd97f1e5..f9f81b85b1 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -883,12 +883,6 @@ class ConnectionVcard: if vcard.has_key('PHOTO'): if not isinstance(vcard['PHOTO'], dict): del vcard['PHOTO'] - elif vcard['PHOTO'].has_key('SHA'): - cached_sha = vcard['PHOTO']['SHA'] - if self.vcard_shas.has_key(jid) and self.vcard_shas[jid] != \ - cached_sha: - # user change his vcard so don't use the cached one - return {} vcard['jid'] = jid vcard['resource'] = gajim.get_resource_from_jid(fjid) return vcard -- GitLab