fix group receipt acks

This commit is contained in:
DaZZZl 2016-04-05 20:32:29 +02:00
parent 2683b774f0
commit e357cef047
1 changed files with 3 additions and 3 deletions

View File

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