forked from sch/Slixfeed
Always allow untrusted keys.
This commit is contained in:
parent
9c068ad600
commit
bd058ebf73
3 changed files with 5 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
|||
__version__ = '0.1.89'
|
||||
__version_info__ = (0, 1, 89)
|
||||
__version__ = '0.1.90'
|
||||
__version_info__ = (0, 1, 90)
|
||||
|
|
|
@ -151,6 +151,7 @@ class XmppChat:
|
|||
# await compose.message(self, jid_bare, message)
|
||||
|
||||
if self['xep_0384'].is_encrypted(message):
|
||||
allow_untrusted=True # Temporary fix. This should be handled by "retry""
|
||||
command, omemo_decrypted, retry = await XmppOmemo.decrypt(
|
||||
self, message, allow_untrusted)
|
||||
if retry:
|
||||
|
|
|
@ -59,7 +59,8 @@ class XmppOmemo:
|
|||
response = message_body.decode('utf8')
|
||||
omemo_decrypted = True
|
||||
else:
|
||||
response = retry = omemo_decrypted = None
|
||||
omemo_decrypted = response = None
|
||||
retry = None
|
||||
except (MissingOwnKey,) as exn:
|
||||
# The message is missing our own key, it was not encrypted for
|
||||
# us, and we can't decrypt it.
|
||||
|
|
Loading…
Reference in a new issue