diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-06-04 00:55:00 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-06-04 01:39:47 +0300 |
commit | 7c09d39e37dd88ebb0d6a6a61b7572d333222190 (patch) | |
tree | b150d10a3fa40b9f5cf4d8ba81e1ad79214eea2c | |
parent | b4884437063feb269e851c23be8927e3976b4cac (diff) |
Dont send smacks delay tag with LMCgajim-0.16.8
Since we save the sent stanzas in the smacks queue for a
potential replay on connection loss, smacks adds a delay tag.
-rw-r--r-- | src/common/connection.py | 4 |
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() |