[omemo] Improve verifying trust

This commit is contained in:
Philipp Hörist
2019-02-24 17:18:03 +01:00
parent 0c38ee374c
commit 49ffa7a3b2

View File

@@ -532,7 +532,7 @@ class LiteAxolotlStore(AxolotlStore):
def isUntrustedIdentity(self, recipient_id, identity_key):
return self.getTrustForIdentity(
recipient_id, identity_key) not in (Trust.TRUSTED, Trust.UNDECIDED)
recipient_id, identity_key) == Trust.UNTRUSTED
def getIdentityLastSeen(self, recipient_id, identity_key):
identity_key = identity_key.getPublicKey().serialize()