From f00580e268554cf7643b2bc5e643776403d960ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 10 Mar 2022 13:04:45 +0100 Subject: [PATCH] encrypt*Message: use named parameter for bundles 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index a89a829..42c0812 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -767,7 +767,7 @@ class XEP_0384(BasePlugin): encrypted = await self._omemo().encryptMessage( barejids, plaintext.encode('utf-8'), - self.bundles, + bundles=self.bundles, expect_problems=expect_problems, ) elif _ignore_trust: @@ -780,7 +780,7 @@ class XEP_0384(BasePlugin): else: encrypted = await self._omemo().encryptKeyTransportMessage( barejids, - self.bundles, + bundles=self.bundles, expect_problems=expect_problems, ) return _generate_encrypted_payload(encrypted)