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.
This commit is contained in:
mathieui 2015-02-04 16:49:39 +01:00
parent 62eefdbd6a
commit 4027927c6e
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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):