Commit 21e8df5c authored by Philipp Hörist's avatar Philipp Hörist
Browse files

MUC: Force muc user real JIDs to bare

Its unspecified if servers need to send a full JID or bare JID here.
Further its also unspecified if they need to send all full JIDs of
all connected resources.

So we implement on what we can actually depend, there needs to be
at least a bare JID.
parent dcce30a4
Pipeline #8998 failed with stages
in 38 seconds
......@@ -177,7 +177,7 @@ def parse_muc_user(muc_user, is_presence=True):
jid = item_dict.get('jid')
if jid is not None:
try:
jid = JID.from_string(jid)
jid = JID.from_string(jid, force_bare=True)
except InvalidJid as error:
raise StanzaMalformed('invalid jid %s, %s' % (jid, error))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment