remove useless test in get_cached_vcard func. fixes #2717

This commit is contained in:
Yann Leboulanger 2006-12-01 21:23:24 +00:00
parent 24d6c7ccaa
commit d5b62294ab
1 changed files with 0 additions and 6 deletions

View File

@ -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