plugin XEP-0384: removed version restriction, it is now compatible with (and require) last version of python-omemo (0.10.4)

This commit is contained in:
Goffi 2019-03-20 09:08:37 +01:00
commit ace2f57027
2 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ PLUGIN_INFO = {
C.PI_DESCRIPTION: _(u"""Implementation of OMEMO"""),
}
OMEMO_MIN_VER = (0, 10, 3)
OMEMO_MIN_VER = (0, 10, 4)
NS_OMEMO = "eu.siacs.conversations.axolotl"
NS_OMEMO_DEVICES = NS_OMEMO + ".devicelist"
NS_OMEMO_BUNDLE = NS_OMEMO + ".bundles:{device_id}"
@ -801,7 +801,7 @@ class OMEMO(object):
expect_problems = {}
cache = client._xep_0384_cache
for problem in problems:
if isinstance(problem, omemo_excpt.UntrustedException):
if isinstance(problem, omemo_excpt.TrustException):
untrusted[unicode(hash(problem))] = problem
if isinstance(problem, omemo_excpt.MissingBundleException):
pb_entity = jid.JID(problem.bare_jid)
@ -966,7 +966,7 @@ class OMEMO(object):
try:
try:
plaintext = yield omemo_session.decryptMessage(**kwargs)
except omemo_excpt.UntrustedException:
except omemo_excpt.TrustException:
post_treat.addCallback(client.encryption.markAsUntrusted)
kwargs['allow_untrusted'] = True
plaintext = yield omemo_session.decryptMessage(**kwargs)

View file

@ -50,7 +50,7 @@ install_requires = [
'urwid >= 1.2.0',
'urwid-satext >= 0.6.1',
'wokkel >= 0.7.1',
'omemo == 0.10.3', # FIXME: we block to this version until bêta
'omemo',
'omemo_backend_signal',
]