Add my_fingerprint method

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-06-29 01:44:02 +02:00
parent 92a379a327
commit 78db04a1a8

View file

@ -255,6 +255,10 @@ class XEP_0384(BasePlugin):
def my_device_id(self) -> int: def my_device_id(self) -> int:
return self._device_id return self._device_id
def my_fingerprint(self) -> str:
bundle = self._omemo.public_bundle.serialize(self.omemo_backend)
return fp_from_ik(bundle['ik'])
def _set_node_config( def _set_node_config(
self, self,
node: str, node: str,