diff 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
line wrap: on
line diff
--- a/sat_pubsub/mam.py	Fri Oct 15 15:54:15 2021 +0200
+++ b/sat_pubsub/mam.py	Fri Oct 15 18:10:11 2021 +0200
@@ -145,7 +145,7 @@
 
     def forwardPEPMessage(self, mam_request, id_, elt, created):
         msg = domish.Element((None, 'message'))
-        msg['from'] = self.backend.privilege.server_jid.full()
+        msg['from'] = self.backend.server_jid.full()
         msg['to'] = mam_request.sender.full()
         result = msg.addElement((mam.NS_MAM, 'result'))
         if mam_request.query_id is not None: