From d40a9d90cc7837e9a7be36c07321b12894ab5e10 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:22:58 +0200 Subject: [PATCH] Fetch up-to-date bundle info on /omemo_fingerprint 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/poezio_omemo/__init__.py b/poezio_omemo/__init__.py index de9d02c..5eb8b7a 100644 --- a/poezio_omemo/__init__.py +++ b/poezio_omemo/__init__.py @@ -125,6 +125,11 @@ class Plugin(E2EEPlugin): async def get_fingerprints(self, jid: JID) -> List[str]: """Return fingerprints for the provided JID""" + # XXX: Do we want to keep this here? + self.core.information('Fetching up-to-date fingerprint information…', 'Info') + await self.core.xmpp['xep_0384'].fetch_devices(jid) + await self.core.xmpp['xep_0384'].fetch_bundles(jid) + devices = await self.core.xmpp['xep_0384'].get_trust_for_jid(jid) # XXX: What to do with did -> None entries?