Substitute a blank JID for the boundjid in API calls.
This commit is contained in:
parent
98b7e8b10a
commit
7b80ed0807
@ -101,8 +101,10 @@ class APIRegistry(object):
|
||||
|
||||
if not jid:
|
||||
jid = self.xmpp.boundjid
|
||||
if jid and not isinstance(jid, JID):
|
||||
elif jid and not isinstance(jid, JID):
|
||||
jid = JID(jid)
|
||||
elif jid == JID(''):
|
||||
jid = self.xmpp.boundjid
|
||||
|
||||
if node is None:
|
||||
node = ''
|
||||
|
Loading…
Reference in New Issue
Block a user