From 9e25a9931658867512fd9a99f67153462f4a7c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 20 Mar 2022 23:06:57 +0100 Subject: [PATCH] get_fingerprints is not async MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio_omemo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio_omemo/__init__.py b/poezio_omemo/__init__.py index 0ce1f3e..ed734e9 100644 --- a/poezio_omemo/__init__.py +++ b/poezio_omemo/__init__.py @@ -108,9 +108,9 @@ class Plugin(E2EEPlugin): """Poezio logger Helper""" self.api.information(txt, 'Error') - def get_fingerprints(self, jid: JID) -> List[str]: + async def get_fingerprints(self, jid: JID) -> List[str]: """Return fingerprints for the provided JID""" - devices = self.core.xmpp['xep_0384'].get_trust_for_jid(jid) + devices = await self.core.xmpp['xep_0384'].get_trust_for_jid(jid) # XXX: What to do with did -> None entries? # XXX: What to do with the active/inactive devices differenciation?