Fetch up-to-date bundle info on /omemo_fingerprint

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-07-11 12:22:58 +02:00
parent 3096d439d4
commit d40a9d90cc
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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?