Skip to content
Snippets Groups Projects
Commit 10965968 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Dont throw exception on missing session

parent 75a4f19d
No related branches found
No related tags found
No related merge requests found
......@@ -494,13 +494,9 @@ class LiteAxolotlStore(AxolotlStore):
def isTrusted(self, recipient_id, device_id):
record = self.loadSession(recipient_id, device_id)
try:
identity_key = record.getSessionState().getRemoteIdentityKey()
except Exception:
log.exception('Unable to determine trust for %s %s',
recipient_id, device_id)
if record.isFresh():
return False
identity_key = record.getSessionState().getRemoteIdentityKey()
return self.getTrustForIdentity(
recipient_id, identity_key) == Trust.TRUSTED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment