diff sat/core/xmpp.py @ 2983:97a1faca8f58

core (xmpp): fixed URI correction while parsing messages: A double "==" was used instead of a single one. As a result URI was never fixed and some elements could be missed (like body), and then the message discarded. Should fix 294 (to be confirmed). fix 294
author Goffi <goffi@goffi.org>
date Tue, 02 Jul 2019 09:09:04 +0200
parents f44a95f566d2
children 4bac4e734666
line wrap: on
line diff
--- a/sat/core/xmpp.py	Sun Jun 30 16:39:42 2019 +0200
+++ b/sat/core/xmpp.py	Tue Jul 02 09:09:04 2019 +0200
@@ -971,7 +971,7 @@
             message_elt.defaultUri = message_elt.uri = C.NS_CLIENT
             for c in message_elt.elements():
                 if c.uri is None:
-                    c.uri == C.NS_CLIENT
+                    c.uri = C.NS_CLIENT
         elif message_elt.uri != C.NS_CLIENT:
             log.warning(_(
                 u"received <message> with a wrong namespace: {xml}"