Merge branch 'component-ifrom' into 'master'

xep_0030: fix ifrom for disco queries sent by components

See merge request poezio/slixmpp!216
This commit is contained in:
mathieui 2022-09-09 16:06:38 +00:00
commit cba5dc7ddc

View file

@ -385,6 +385,8 @@ class XEP_0030(BasePlugin):
local = True local = True
ifrom = kwargs.pop('ifrom', None) ifrom = kwargs.pop('ifrom', None)
if self.xmpp.is_component and ifrom is None:
ifrom = self.xmpp.boundjid
if local: if local:
log.debug("Looking up local disco#info data " log.debug("Looking up local disco#info data "
"for %s, node %s.", jid, node) "for %s, node %s.", jid, node)