get_fingerprints is not async

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-20 23:06:57 +01:00
parent 91e52cb724
commit 9e25a99316
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -108,9 +108,9 @@ class Plugin(E2EEPlugin):
"""Poezio logger Helper""" """Poezio logger Helper"""
self.api.information(txt, 'Error') 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""" """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 did -> None entries?
# XXX: What to do with the active/inactive devices differenciation? # XXX: What to do with the active/inactive devices differenciation?