remove useless test in get_cached_vcard func. fixes #2717
This commit is contained in:
parent
24d6c7ccaa
commit
d5b62294ab
1 changed files with 0 additions and 6 deletions
|
@ -883,12 +883,6 @@ class ConnectionVcard:
|
||||||
if vcard.has_key('PHOTO'):
|
if vcard.has_key('PHOTO'):
|
||||||
if not isinstance(vcard['PHOTO'], dict):
|
if not isinstance(vcard['PHOTO'], dict):
|
||||||
del vcard['PHOTO']
|
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['jid'] = jid
|
||||||
vcard['resource'] = gajim.get_resource_from_jid(fjid)
|
vcard['resource'] = gajim.get_resource_from_jid(fjid)
|
||||||
return vcard
|
return vcard
|
||||||
|
|
Loading…
Add table
Reference in a new issue