'Called when we receive an EDU of type m.receipt from a remote HS.'

@defer.inlineCallbacks
def _received_remote_receipt(self, origin, content):

    receipts = [{'room_id': room_id, 'receipt_type': receipt_type, 'user_id': user_id, 'event_ids': user_values['event_ids'], 'data': user_values.get('data', {})} for (room_id, room_values) in content.items() for (receipt_type, users) in room_values.items() for (user_id, user_values) in users.items()]
    (yield self._handle_new_receipts(receipts))
