xep_0030: get_items(): fix ifrom for local calls
kwargs can never have 'ifrom' since it's in the method signature
This commit is contained in:
parent
1a40699bcc
commit
21e5cd4435
@ -462,7 +462,7 @@ class XEP_0030(BasePlugin):
|
||||
|
||||
if local or local is None and jid is None:
|
||||
items = await self.api['get_items'](jid, node, ifrom, kwargs)
|
||||
return self._wrap(kwargs.get('ifrom', None), jid, items)
|
||||
return self._wrap(ifrom, jid, items)
|
||||
|
||||
iq = self.xmpp.Iq()
|
||||
# Check dfrom parameter for backwards compatibility
|
||||
|
Loading…
Reference in New Issue
Block a user