Mercurial > libervia-backend
diff sat/core/xmpp.py @ 2794:33fa70c102de
plugin XEP-0045: fixed crash when <delay> is used at an unexpected time.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2019 20:07:45 +0100 |
parents | f7deb1c36b47 |
children | 7ab8684784c6 |
line wrap: on
line diff
--- a/sat/core/xmpp.py Fri Jan 25 09:06:29 2019 +0100 +++ b/sat/core/xmpp.py Sat Jan 26 20:07:45 2019 +0100 @@ -871,7 +871,10 @@ if message_elt.uri is None: # wokkel element parsing strip out root namespace - message_elt.uri = C.NS_CLIENT + message_elt.defaultUri = message_elt.uri = C.NS_CLIENT + for c in message_elt.children: + if c.uri is None: + c.uri == C.NS_CLIENT elif message_elt.uri != C.NS_CLIENT: log.warning(_( u"received <message> with a wrong namespace: {xml}"