diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 068cccc..15a9699 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -779,10 +779,11 @@ 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, None) encrypted = await self._omemo().encryptRatchetForwardingMessage( bare_jid=barejids[0], device_id=_device_id, - bundle=None, + bundle=bundle, ) else: encrypted = await self._omemo().encryptKeyTransportMessage(