Merge branch 'vcard-fix-handler' into 'master'

XEP-0054: fix component handling of vcard requests

See merge request poezio/slixmpp!127
This commit is contained in:
Link Mauve 2021-02-13 22:02:31 +01:00
commit 5d7918b122

View file

@ -131,7 +131,7 @@ class XEP_0054(BasePlugin):
self.api['set_vcard'](jid=iq['from'], args=iq['vcard_temp'])
return
elif iq['type'] == 'get' and self.xmpp.is_component:
vcard = self.api['get_vcard'](iq['from'].bare)
vcard = self.api['get_vcard'](iq['to'].bare, ifrom=iq['from'])
if isinstance(vcard, Iq):
vcard.send()
else: