From b18f7d997304dceb3bebd6219b24287d17537a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 13 Dec 2019 19:05:35 +0100 Subject: [PATCH] Update trust methods for 0.11.0 omemo update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index a89250a..d984e5c 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -456,10 +456,10 @@ 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.trust(jid.bare, device_id, ik) + self._omemo.setTrusted(jid.bare, device_id, ik, True) def distrust(self, jid: JID, device_id: int, ik: bytes) -> None: - self._omemo.distrust(jid.bare, device_id, ik) + self._omemo.setTrust(jid.bare, device_id, ik, False) def get_trust_for_jid(self, jid: JID) -> Dict[str, List[Optional[Dict[str, Any]]]]: """