my_fingerprint: public_bundle.serialize isn't awaitable

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-07-11 12:15:54 +02:00
parent 4bc8c5e6b6
commit 73bc6b7803
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ xxxx-xx-xx Maxime “pep” Buquet <pep@bouah.net>
- get_devices and get_active_devices now return Iterable[int] instead of Iterable[str] - get_devices and get_active_devices now return Iterable[int] instead of Iterable[str]
* Changes: * Changes:
- fetch_bundle and fetch_device methods are now public - fetch_bundle and fetch_device methods are now public
- my_fingerprint doesn't traceback anymore on normal operation
* Added: * Added:
- New fetch_bundles method to fetch all bundles at once - New fetch_bundles method to fetch all bundles at once
Version 0.7.0: Version 0.7.0:

View file

@ -299,7 +299,7 @@ class XEP_0384(BasePlugin):
return self._device_id return self._device_id
async def my_fingerprint(self) -> str: 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']) return fp_from_ik(bundle['ik'])
def _set_node_config( def _set_node_config(