Use the correct method name setTrust

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-12-13 19:13:39 +01:00
parent b18f7d9973
commit 89758db2b2
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -456,7 +456,7 @@ class XEP_0384(BasePlugin):
return self._omemo.getDevices(jid.bare).get('active', [])
def trust(self, jid: JID, device_id: int, ik: bytes) -> None:
self._omemo.setTrusted(jid.bare, device_id, ik, True)
self._omemo.setTrust(jid.bare, device_id, ik, True)
def distrust(self, jid: JID, device_id: int, ik: bytes) -> None:
self._omemo.setTrust(jid.bare, device_id, ik, False)