encrypt*Message: use named parameter for bundles

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-10 13:04:45 +01:00
parent 05e6ff3b8e
commit f00580e268
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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)