From 73bc6b780389354f5f1d48b29dfcb3a62d94e4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 11 Jul 2022 12:15:54 +0200 Subject: [PATCH] my_fingerprint: public_bundle.serialize isn't awaitable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- ChangeLog | 1 + slixmpp_omemo/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 418f380..4bee51b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ xxxx-xx-xx Maxime “pep” Buquet - get_devices and get_active_devices now return Iterable[int] instead of Iterable[str] * Changes: - fetch_bundle and fetch_device methods are now public + - my_fingerprint doesn't traceback anymore on normal operation * Added: - New fetch_bundles method to fetch all bundles at once Version 0.7.0: diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 3c6b5d3..bed6c83 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -299,7 +299,7 @@ class XEP_0384(BasePlugin): return self._device_id async def my_fingerprint(self) -> str: - bundle = await self._omemo().public_bundle.serialize(self.omemo_backend) + bundle = self._omemo().public_bundle.serialize(self.omemo_backend) return fp_from_ik(bundle['ik']) def _set_node_config(