From e5aab2f4533d0a687befae44ea12354acdf54abd Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 2 Jul 2019 09:09:04 +0200 Subject: [PATCH] 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 --- sat/core/xmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index e8c2c46c..e932361d 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -971,7 +971,7 @@ class SatMessageProtocol(xmppim.MessageProtocol): 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 with a wrong namespace: {xml}"