From 41b7bd7b415c1272911d400fe93f25e7c0638a72 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 29 Dec 2011 14:08:35 +0100
Subject: [PATCH] fix sending jingle ack

---
 src/common/jingle_ft.py      | 4 ++++
 src/common/jingle_session.py | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/common/jingle_ft.py b/src/common/jingle_ft.py
index 794d953e91..02e5193c0f 100644
--- a/src/common/jingle_ft.py
+++ b/src/common/jingle_ft.py
@@ -116,6 +116,7 @@ class JingleFileTransfer(JingleContent):
         if self.state == STATE_TRANSPORT_REPLACE:
             # We ack the session accept
             response = stanza.buildReply('result')
+            response.delChild(response.getQuery())
             con.connection.send(response)
             # We send the file
             con.files_props[self.file_props['sid']] = self.file_props
@@ -131,6 +132,7 @@ class JingleFileTransfer(JingleContent):
                 host['sid'] = self.file_props['sid']
 
         response = stanza.buildReply('result')
+        response.delChild(response.getQuery())
         con.connection.send(response)
 
         if not gajim.socks5queue.get_file_props(
@@ -174,6 +176,7 @@ class JingleFileTransfer(JingleContent):
                     self.session.transport_replace()
                 else:
                     response = stanza.buildReply('result')
+                    response.delChild(response.getQuery())
                     self.session.connection.connection.send(response)
                     self.start_transfer()
                     raise xmpp.NodeProcessed
@@ -203,6 +206,7 @@ class JingleFileTransfer(JingleContent):
         self.nominated_cand['peer-cand'] = streamhost_used
         if self.state == STATE_CAND_SENT_PENDING_REPLY:
             response = stanza.buildReply('result')
+            response.delChild(response.getQuery())
             self.session.connection.connection.send(response)
             self.start_transfer()
             raise xmpp.NodeProcessed
diff --git a/src/common/jingle_session.py b/src/common/jingle_session.py
index 5eaffd5dd7..4ade92a0a3 100644
--- a/src/common/jingle_session.py
+++ b/src/common/jingle_session.py
@@ -344,6 +344,7 @@ class JingleSession(object):
         Default callback for action stanzas -- simple ack and stop processing
         """
         response = stanza.buildReply('result')
+        response.delChild(response.getQuery())
         self.connection.connection.send(response)
 
     def __on_error(self, stanza, jingle, error, action):
-- 
GitLab