Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0054.py @ 1978:8156f2116dc9
plugin XEP-0054: fixed getCard calls
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Jun 2016 18:27:02 +0200 |
parents | 200cd707a46d |
children | b99bd02ea643 |
comparison
equal
deleted
inserted
replaced
1977:bdc6a5b07922 | 1978:8156f2116dc9 |
---|---|
403 if os.path.exists(filename): | 403 if os.path.exists(filename): |
404 log.debug(u"New avatar found for [{}], it's already in cache, we use it".format(from_jid.full())) | 404 log.debug(u"New avatar found for [{}], it's already in cache, we use it".format(from_jid.full())) |
405 self.plugin_parent.updateCache(self.parent, from_jid, 'avatar', hash_) | 405 self.plugin_parent.updateCache(self.parent, from_jid, 'avatar', hash_) |
406 else: | 406 else: |
407 log.debug(u'New avatar found for [{}], requesting vcard'.format(from_jid.full())) | 407 log.debug(u'New avatar found for [{}], requesting vcard'.format(from_jid.full())) |
408 self.plugin_parent.getCard(from_jid, self.parent.profile) | 408 self.plugin_parent.getCard(self.parent, from_jid) |
409 else: | 409 else: |
410 if os.path.exists(filename): | 410 if os.path.exists(filename): |
411 log.debug(u"avatar for {} already in cache".format(from_jid.full())) | 411 log.debug(u"avatar for {} already in cache".format(from_jid.full())) |
412 else: | 412 else: |
413 log.error(u"Avatar for [{}] should be in cache but it is not ! We get it".format(from_jid.full())) | 413 log.error(u"Avatar for [{}] should be in cache but it is not ! We get it".format(from_jid.full())) |
414 self.plugin_parent.getCard(from_jid, self.parent.profile) | 414 self.plugin_parent.getCard(self.parent, from_jid) |
415 | 415 |