summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-04 16:49:39 +0100
committermathieui <mathieui@mathieui.net>2015-02-04 16:49:39 +0100
commit4027927c6e2de70d334902e9b6c7b615404f57b4 (patch)
treefecf5a7a850947948fa432bfda7d98adeae49910
parent62eefdbd6a6be7fd1e519a3f1431661ea614af3e (diff)
downloadslixmpp-4027927c6e2de70d334902e9b6c7b615404f57b4.tar.gz
slixmpp-4027927c6e2de70d334902e9b6c7b615404f57b4.tar.bz2
slixmpp-4027927c6e2de70d334902e9b6c7b615404f57b4.tar.xz
slixmpp-4027927c6e2de70d334902e9b6c7b615404f57b4.zip
Don’t set the msg['from'] and msg['id'] in receipt.ack()
setting msg['id'] is wrong, and setting msg['from'] might lead to echoing back wrong input.
-rw-r--r--slixmpp/plugins/xep_0184/receipt.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0184/receipt.py b/slixmpp/plugins/xep_0184/receipt.py
index 9ca138b9..2c3555dc 100644
--- a/slixmpp/plugins/xep_0184/receipt.py
+++ b/slixmpp/plugins/xep_0184/receipt.py
@@ -67,9 +67,7 @@ class XEP_0184(BasePlugin):
"""
ack = self.xmpp.Message()
ack['to'] = msg['from']
- ack['from'] = msg['to']
ack['receipt'] = msg['id']
- ack['id'] = msg['id']
ack.send()
def _handle_receipt_received(self, msg):