diff 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
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_message.py	Mon Sep 14 09:23:23 2020 +0200
+++ b/sat_frontends/jp/cmd_message.py	Thu Sep 17 10:46:13 2020 +0200
@@ -236,12 +236,14 @@
             if value is not None:
                 extra[key] = str(value)
         try:
-            data, metadata, profile = await self.host.bridge.MAMGet(
+            data, metadata_s, profile = await self.host.bridge.MAMGet(
                 self.args.service, data_format.serialise(extra), self.profile)
         except Exception as e:
             self.disp(f"can't retrieve MAM archives: {e}", error=True)
             self.host.quit(C.EXIT_BRIDGE_ERRBACK)
 
+        metadata = data_format.deserialise(metadata_s)
+
         try:
             session_info = await self.host.bridge.sessionInfosGet(self.profile)
         except Exception as e: