Mercurial > libervia-pubsub
comparison sat_pubsub/mam.py @ 335:5580f08c7b91
mam: fixed call to getItemsData where requestor was missing
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 25 Jun 2017 23:12:43 +0200 |
parents | 8d939378f023 |
children | a772f7dac930 |
comparison
equal
deleted
inserted
replaced
334:0a93d71f9503 | 335:5580f08c7b91 |
---|---|
83 log.msg("MAM request without RSM limited to {}".format(const.VAL_RSM_MAX_DEFAULT)) | 83 log.msg("MAM request without RSM limited to {}".format(const.VAL_RSM_MAX_DEFAULT)) |
84 ext_data['rsm'] = rsm.RSMRequest(const.VAL_RSM_MAX_DEFAULT) | 84 ext_data['rsm'] = rsm.RSMRequest(const.VAL_RSM_MAX_DEFAULT) |
85 else: | 85 else: |
86 ext_data['rsm'] = mam_request.rsm | 86 ext_data['rsm'] = mam_request.rsm |
87 | 87 |
88 d = self.backend.getItemsData(mam_request.node, mam_request.recipient, None, None, ext_data) | 88 d = self.backend.getItemsData(mam_request.node, mam_request.sender, mam_request.recipient, None, None, ext_data) |
89 | 89 |
90 def make_message(elt): | 90 def make_message(elt): |
91 # XXX: http://xmpp.org/extensions/xep-0297.html#sect-idp629952 (rule 3) | 91 # XXX: http://xmpp.org/extensions/xep-0297.html#sect-idp629952 (rule 3) |
92 message = domish.Element((const.NS_CLIENT, "message")) | 92 message = domish.Element((const.NS_CLIENT, "message")) |
93 event = message.addElement((pubsub.NS_PUBSUB_EVENT, "event")) | 93 event = message.addElement((pubsub.NS_PUBSUB_EVENT, "event")) |