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)