encrypt: pass bundle in to encryptRatchetForwarding if available
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
2c4dc24b84
commit
f4d2412443
1 changed files with 2 additions and 1 deletions
|
@ -779,10 +779,11 @@ class XEP_0384(BasePlugin):
|
||||||
elif _ignore_trust:
|
elif _ignore_trust:
|
||||||
if not _device_id or len(barejids) != 1:
|
if not _device_id or len(barejids) != 1:
|
||||||
raise ErroneousParameter
|
raise ErroneousParameter
|
||||||
|
bundle = self.bundles.get(barejids[0], {}).get(_device_id, None)
|
||||||
encrypted = await self._omemo().encryptRatchetForwardingMessage(
|
encrypted = await self._omemo().encryptRatchetForwardingMessage(
|
||||||
bare_jid=barejids[0],
|
bare_jid=barejids[0],
|
||||||
device_id=_device_id,
|
device_id=_device_id,
|
||||||
bundle=None,
|
bundle=bundle,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
encrypted = await self._omemo().encryptKeyTransportMessage(
|
encrypted = await self._omemo().encryptKeyTransportMessage(
|
||||||
|
|
Loading…
Reference in a new issue