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
@ -67,9 +67,7 @@ class XEP_0184(BasePlugin):
|
|||||||
"""
|
"""
|
||||||
ack = self.xmpp.Message()
|
ack = self.xmpp.Message()
|
||||||
ack['to'] = msg['from']
|
ack['to'] = msg['from']
|
||||||
ack['from'] = msg['to']
|
|
||||||
ack['receipt'] = msg['id']
|
ack['receipt'] = msg['id']
|
||||||
ack['id'] = msg['id']
|
|
||||||
ack.send()
|
ack.send()
|
||||||
|
|
||||||
def _handle_receipt_received(self, msg):
|
def _handle_receipt_received(self, msg):
|
||||||
|
Loading…
Reference in New Issue
Block a user