changeset 1978:8156f2116dc9

plugin XEP-0054: fixed getCard calls
author Goffi <goffi@goffi.org>
date Tue, 28 Jun 2016 18:27:02 +0200 (2016-06-28)
parents bdc6a5b07922
children 70e83ca721c8
files src/plugins/plugin_xep_0054.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0054.py	Tue Jun 28 18:26:21 2016 +0200
+++ b/src/plugins/plugin_xep_0054.py	Tue Jun 28 18:27:02 2016 +0200
@@ -405,11 +405,11 @@
                 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)