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:
parent
62eefdbd6a
commit
4027927c6e
1 changed files with 0 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue