comparison sat_pubsub/mam.py @ 469:bcbd2399bfee

mam: `server_jid` must now be used from backend
author Goffi <goffi@goffi.org>
date Fri, 15 Oct 2021 18:10:11 +0200
parents 91da42d44ea2
children 7a23db86ee65
comparison
equal deleted inserted replaced
468:445a2f67be4a 469:bcbd2399bfee
143 d.addCallback(cb) 143 d.addCallback(cb)
144 return d 144 return d
145 145
146 def forwardPEPMessage(self, mam_request, id_, elt, created): 146 def forwardPEPMessage(self, mam_request, id_, elt, created):
147 msg = domish.Element((None, 'message')) 147 msg = domish.Element((None, 'message'))
148 msg['from'] = self.backend.privilege.server_jid.full() 148 msg['from'] = self.backend.server_jid.full()
149 msg['to'] = mam_request.sender.full() 149 msg['to'] = mam_request.sender.full()
150 result = msg.addElement((mam.NS_MAM, 'result')) 150 result = msg.addElement((mam.NS_MAM, 'result'))
151 if mam_request.query_id is not None: 151 if mam_request.query_id is not None:
152 result['queryid'] = mam_request.query_id 152 result['queryid'] = mam_request.query_id
153 result['id'] = id_ 153 result['id'] = id_