Update trust methods for 0.11.0 omemo update
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
39a9fef73b
commit
b18f7d9973
1 changed files with 2 additions and 2 deletions
|
@ -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]]]]:
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue