fix group receipt acks

This commit is contained in:
DaZZZl 2016-04-05 20:32:29 +02:00
parent 2683b774f0
commit e357cef047

View file

@ -742,9 +742,9 @@ class YowsupAppLayer(YowInterfaceLayer):
def onReceipt(self, entity):
"""Sends ack automatically"""
# entity is IncomingReceiptProtocolEntity
ack = OutgoingAckProtocolEntity(entity.getId(),
'receipt', entity.getType(), entity.getFrom())
self.toLower(ack)
#ack = OutgoingAckProtocolEntity(entity.getId(),
# 'receipt', entity.getType(), entity.getFrom())
self.toLower(entity.ack())
_id = entity._id
_from = entity._from
timestamp = entity.timestamp