From 3e92fc051665f9a1ba2d516e28848fef1ee2d088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 3 Mar 2022 21:31:04 +0100 Subject: [PATCH] encryptRatchetForwardingMessage: bundle isn't required for our use-cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 5638e3f..ee3073f 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -773,13 +773,9 @@ class XEP_0384(BasePlugin): elif _ignore_trust: if not _device_id or len(barejids) != 1: raise ErroneousParameter - bundle = self.bundles.get(barejids[0], {}).get(_device_id) - if bundle is None: - error = omemo.exceptions.MissingBundleException(barejids[0], _device_id) - raise omemo.exceptions.EncryptionProblemsException([error]) encrypted = await self._omemo().encryptRatchetForwardingMessage( - barejids[0], - bundle, + bare_jid=barejids[0], + bundle=None, expect_problems=expect_problems, ) else: