diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index e32acaae..e8c2c46c 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -969,7 +969,7 @@ class SatMessageProtocol(xmppim.MessageProtocol): if message_elt.uri is None: # wokkel element parsing strip out root namespace message_elt.defaultUri = message_elt.uri = C.NS_CLIENT - for c in message_elt.children: + for c in message_elt.elements(): if c.uri is None: c.uri == C.NS_CLIENT elif message_elt.uri != C.NS_CLIENT: diff --git a/sat/plugins/plugin_xep_0045.py b/sat/plugins/plugin_xep_0045.py index f16f36ed..26e92114 100644 --- a/sat/plugins/plugin_xep_0045.py +++ b/sat/plugins/plugin_xep_0045.py @@ -1192,7 +1192,7 @@ class SatMUCClient(muc.MUCClient): # unexpected elements which break our workflow. log.warning(_(u"storing the unexpected message anyway, to avoid loss")) # we have to restore URI which are stripped by wokkel parsing - for c in message.element.children: + for c in message.element.elements(): if c.uri is None: c.uri = C.NS_CLIENT mess_data = self.client.messageProt.parseMessage(message.element)