Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuki
gajim-plugins
Commits
10965968
Commit
10965968
authored
Feb 22, 2019
by
Philipp Hörist
Browse files
[omemo] Dont throw exception on missing session
parent
75a4f19d
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/backend/liteaxolotlstore.py
View file @
10965968
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment