xep_0030: do not send IQ without 'from' attr when component
This commit is contained in:
parent
ebb8bd1e71
commit
1a40699bcc
1 changed files with 3 additions and 0 deletions
|
@ -457,6 +457,9 @@ class XEP_0030(BasePlugin):
|
||||||
the XEP-0059 plugin, if the plugin is loaded.
|
the XEP-0059 plugin, if the plugin is loaded.
|
||||||
Otherwise the parameter is ignored.
|
Otherwise the parameter is ignored.
|
||||||
"""
|
"""
|
||||||
|
if ifrom is None and self.xmpp.is_component:
|
||||||
|
ifrom = self.xmpp.boundjid.bare
|
||||||
|
|
||||||
if local or local is None and jid is None:
|
if local or local is None and jid is None:
|
||||||
items = await self.api['get_items'](jid, node, ifrom, kwargs)
|
items = await self.api['get_items'](jid, node, ifrom, kwargs)
|
||||||
return self._wrap(kwargs.get('ifrom', None), jid, items)
|
return self._wrap(kwargs.get('ifrom', None), jid, items)
|
||||||
|
|
Loading…
Reference in a new issue