Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/connection.py')
-rw-r--r--src/common/connection.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index e19970471..cd0ffbbb5 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()