Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_message.py @ 3356:569f4cf7183b
plugin XEP-0313: fixed `MAMGet` signature
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 17 Sep 2020 10:46:13 +0200 |
parents | 84a94b385760 |
children | f30b238d9c45 |
comparison
equal
deleted
inserted
replaced
3355:33d9b38b5890 | 3356:569f4cf7183b |
---|---|
234 key = 'rsm_' + suff | 234 key = 'rsm_' + suff |
235 value = getattr(self.args,key) | 235 value = getattr(self.args,key) |
236 if value is not None: | 236 if value is not None: |
237 extra[key] = str(value) | 237 extra[key] = str(value) |
238 try: | 238 try: |
239 data, metadata, profile = await self.host.bridge.MAMGet( | 239 data, metadata_s, profile = await self.host.bridge.MAMGet( |
240 self.args.service, data_format.serialise(extra), self.profile) | 240 self.args.service, data_format.serialise(extra), self.profile) |
241 except Exception as e: | 241 except Exception as e: |
242 self.disp(f"can't retrieve MAM archives: {e}", error=True) | 242 self.disp(f"can't retrieve MAM archives: {e}", error=True) |
243 self.host.quit(C.EXIT_BRIDGE_ERRBACK) | 243 self.host.quit(C.EXIT_BRIDGE_ERRBACK) |
244 | |
245 metadata = data_format.deserialise(metadata_s) | |
244 | 246 |
245 try: | 247 try: |
246 session_info = await self.host.bridge.sessionInfosGet(self.profile) | 248 session_info = await self.host.bridge.sessionInfosGet(self.profile) |
247 except Exception as e: | 249 except Exception as e: |
248 self.disp(f"can't get session infos: {e}", error=True) | 250 self.disp(f"can't get session infos: {e}", error=True) |