From 7c09d39e37dd88ebb0d6a6a61b7572d333222190 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <forenjunkie@chello.at>
Date: Sat, 3 Jun 2017 23:55:00 +0200
Subject: [PATCH] Dont send smacks delay tag with LMC

Since we save the sent stanzas in the smacks queue for a
potential replay on connection loss, smacks adds a delay tag.
---
 src/common/connection.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/common/connection.py b/src/common/connection.py
index e19970471a..cd0ffbbb57 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -411,6 +411,8 @@ class CommonConnection:
             id_ = correction_msg.getID()
             if correction_msg.getTag('replace'):
                 correction_msg.delChild('replace')
+            if correction_msg.getTag('delay'):
+                correction_msg.delChild('delay')
             correction_msg.setTag('replace', attrs={'id': id_},
                 namespace=nbxmpp.NS_CORRECT)
             id2 = self.connection.getAnID()
@@ -2737,6 +2739,8 @@ class Connection(CommonConnection, ConnectionHandlers):
             id_ = obj.correction_msg.getID()
             if obj.correction_msg.getTag('replace'):
                 obj.correction_msg.delChild('replace')
+            if obj.correction_msg.getTag('delay'):
+                obj.correction_msg.delChild('delay')
             obj.correction_msg.setTag('replace', attrs={'id': id_},
                                       namespace=nbxmpp.NS_CORRECT)
             id2 = self.connection.getAnID()
-- 
GitLab