plugin XEP-0054: fixed getCard calls
This commit is contained in:
parent
8b425a2e44
commit
96afcb28d3
1 changed files with 2 additions and 2 deletions
|
|
@ -405,11 +405,11 @@ class XEP_0054_handler(XMPPHandler):
|
|||
self.plugin_parent.updateCache(self.parent, from_jid, 'avatar', hash_)
|
||||
else:
|
||||
log.debug(u'New avatar found for [{}], requesting vcard'.format(from_jid.full()))
|
||||
self.plugin_parent.getCard(from_jid, self.parent.profile)
|
||||
self.plugin_parent.getCard(self.parent, from_jid)
|
||||
else:
|
||||
if os.path.exists(filename):
|
||||
log.debug(u"avatar for {} already in cache".format(from_jid.full()))
|
||||
else:
|
||||
log.error(u"Avatar for [{}] should be in cache but it is not ! We get it".format(from_jid.full()))
|
||||
self.plugin_parent.getCard(from_jid, self.parent.profile)
|
||||
self.plugin_parent.getCard(self.parent, from_jid)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue