diff options
author | mathieui <mathieui@mathieui.net> | 2015-02-04 16:49:39 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-02-04 16:49:39 +0100 |
commit | 4027927c6e2de70d334902e9b6c7b615404f57b4 (patch) | |
tree | fecf5a7a850947948fa432bfda7d98adeae49910 | |
parent | 62eefdbd6a6be7fd1e519a3f1431661ea614af3e (diff) | |
download | slixmpp-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.py | 2 |
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): |